MDL-64064 block_timeline: Confusing when event is not in this year
authorNeill Magill <neill.magill@nottingham.ac.uk>
Fri, 6 Sep 2019 11:05:07 +0000 (12:05 +0100)
committerNeill Magill <neill.magill@nottingham.ac.uk>
Fri, 11 Oct 2019 07:37:31 +0000 (08:37 +0100)
If an event is not in the current year it can be confusing as the
months and days may appear to be in the wrong order.

This change adds the year to the displayed date to make the reason
for the order clear.

blocks/timeline/templates/event-list-content.mustache

index b8df729..f138e9c 100644 (file)
@@ -65,7 +65,7 @@
 }}
 <div class="border-bottom pb-2">
     {{#eventsbyday}}
-        <h5 class="h6 mt-3 mb-0 {{#past}}text-danger{{/past}}">{{#userdate}} {{dayTimestamp}}, {{#str}} strftimedayshort, core_langconfig {{/str}}  {{/userdate}}</h5>
+        <h5 class="h6 mt-3 mb-0 {{#past}}text-danger{{/past}}">{{#userdate}} {{dayTimestamp}}, {{#str}} strftimedaydate, core_langconfig {{/str}}  {{/userdate}}</h5>
         {{> block_timeline/event-list-items }}
     {{/eventsbyday}}
 </div>
\ No newline at end of file