UX: displays full date time when displaying ranges (#9386)

UX: displays full date time when displaying ranges (#9386)

diff --git a/plugins/discourse-local-dates/assets/javascripts/lib/local-date-builder.js.es6 b/plugins/discourse-local-dates/assets/javascripts/lib/local-date-builder.js.es6
index b424d38..827ba74 100644
--- a/plugins/discourse-local-dates/assets/javascripts/lib/local-date-builder.js.es6
+++ b/plugins/discourse-local-dates/assets/javascripts/lib/local-date-builder.js.es6
@@ -154,9 +154,9 @@ export default class LocalDateBuilder {
     } else {
       const endRange = startRange.add(24, "hours");
       return [
-        startRange.format(this.format || "LLLL"),
+        startRange.format("LLLL"),
         RANGE_SEPARATOR,
-        endRange.format(this.format || "LLLL")
+        endRange.format("LLLL")
       ].join(" ");
     }
   }
diff --git a/plugins/discourse-local-dates/test/javascripts/lib/local-date-builder-test.js.es6 b/plugins/discourse-local-dates/test/javascripts/lib/local-date-builder-test.js.es6
index b18e636..3449944 100644
--- a/plugins/discourse-local-dates/test/javascripts/lib/local-date-builder-test.js.es6
+++ b/plugins/discourse-local-dates/test/javascripts/lib/local-date-builder-test.js.es6
@@ -308,7 +308,8 @@ QUnit.test("previews", assert => {
         previews: [
           {
             current: true,
-            formated: "March 22, 2020 → March 23, 2020",
+            formated:
+              "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
             timezone: "Paris"
           }
         ]
@@ -323,11 +324,13 @@ QUnit.test("previews", assert => {
         previews: [
           {
             current: true,
-            formated: "March 22, 2020 → March 23, 2020",
+            formated:
+              "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
             timezone: "Paris"
           },
           {
-            formated: "March 23, 2020 → March 23, 2020",
+            formated:
+              "Monday, March 23, 2020 10:00 AM → Monday, March 23, 2020 10:00 AM",
             timezone: "Sydney"
           }
         ]
@@ -342,7 +345,8 @@ QUnit.test("previews", assert => {
         previews: [
           {
             current: true,
-            formated: "March 22, 2020 → March 23, 2020",
+            formated:
+              "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
             timezone: "Paris"
           }
         ]
@@ -357,7 +361,8 @@ QUnit.test("previews", assert => {
         previews: [
           {
             current: true,
-            formated: "March 22, 2020 → March 23, 2020",
+            formated:
+              "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
             timezone: "Paris"
           }
         ]
@@ -372,7 +377,8 @@ QUnit.test("previews", assert => {
         previews: [
           {
             current: true,
-            formated: "March 22, 2020 → March 23, 2020",
+            formated:
+              "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
             timezone: "Paris"
           }
         ]
@@ -402,15 +408,18 @@ QUnit.test("previews", assert => {
         previews: [
           {
             current: true,
-            formated: "April 7, 2020 → April 8, 2020",
+            formated:
+              "Tuesday, April 7, 2020 12:00 AM → Wednesday, April 8, 2020 12:00 AM",
             timezone: "Paris"
           },
           {
-            formated: "April 7, 2020 → April 7, 2020",
+            formated:
+              "Tuesday, April 7, 2020 11:00 PM → Tuesday, April 7, 2020 11:00 PM",
             timezone: "London"
           },
           {
-            formated: "April 7, 2020 → April 7, 2020",
+            formated:
+              "Tuesday, April 7, 2020 11:00 PM → Tuesday, April 7, 2020 11:00 PM",
             timezone: "Lagos"
           }
         ]

GitHub sha: 61711412

This commit appears in #9386 which was merged by jjaffeux.