From 25daf6b502f928d1d3d01744b473040091307d8a Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Mon, 12 Sep 2022 09:34:24 -0700 Subject: [PATCH] Uses locale date and time depending on locale (#1874) * Uses locale date and time depending on locale * Fixes tests --- assets/components/RelativeTime.vue | 40 +++++-------------- .../__snapshots__/LogEventSource.spec.ts.snap | 12 +++--- 2 files changed, 17 insertions(+), 35 deletions(-) diff --git a/assets/components/RelativeTime.vue b/assets/components/RelativeTime.vue index ddac9bcc..c4ea3800 100644 --- a/assets/components/RelativeTime.vue +++ b/assets/components/RelativeTime.vue @@ -1,40 +1,22 @@ - - diff --git a/assets/components/__snapshots__/LogEventSource.spec.ts.snap b/assets/components/__snapshots__/LogEventSource.spec.ts.snap index de413971..7cfe320d 100644 --- a/assets/components/__snapshots__/LogEventSource.spec.ts.snap +++ b/assets/components/__snapshots__/LogEventSource.spec.ts.snap @@ -23,7 +23,7 @@ exports[` > render html correctly > should render dates with 1 -
+
<test>foo bar</test>
@@ -53,7 +53,7 @@ exports[` > render html correctly > should render dates with 2
-
+
<test>foo bar</test>
@@ -83,7 +83,7 @@ exports[` > render html correctly > should render messages 1`]
-
+
This is a message.
@@ -113,7 +113,7 @@ exports[` > render html correctly > should render messages wit
-
+
blackwhite
@@ -143,7 +143,7 @@ exports[` > render html correctly > should render messages wit
-
+
test bar
@@ -173,7 +173,7 @@ exports[` > render html correctly > should render messages wit
-
+
<test>foo bar</test>