From f798bc999ce61dd056ce7b4b101e8ef4a4e8c358 Mon Sep 17 00:00:00 2001 From: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Mon, 17 Jul 2023 08:21:52 -0700 Subject: [PATCH] Use getPreferredSystemLocales for all timestamps --- ts/util/timestamp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/util/timestamp.ts b/ts/util/timestamp.ts index 90134fab1..0a0936e9e 100644 --- a/ts/util/timestamp.ts +++ b/ts/util/timestamp.ts @@ -170,7 +170,7 @@ export function formatTime( }); } - return new Date(timestamp).toLocaleTimeString([], { + return formatTimestamp(timestamp, { hour: 'numeric', minute: '2-digit', });