[MGNLUI-5987] Date column format is strange in M6 Apps Created: 22/Jun/20  Updated: 20/Aug/20  Resolved: 10/Aug/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.2
Fix Version/s: 6.2.3

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Quach Hao Thien
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 6d 1h
Original Estimate: Not Specified

Attachments: PNG File bug-format-in-m5.png     PNG File bug-odd-date-format.png    
Issue Links:
Relates
relates to MGNLUI-5985 Date column is cutoff in M6 apps Closed
dependency
is depended upon by MGNLUI-5899 Unable to sort Tasks list order by date Closed
is depended upon by MGNLUI-5985 Date column is cutoff in M6 apps Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: M6 UI & UX Improvements
Sprint: CM & OC 7, CM & OC 8
Story Points: 3

 Description   

In M6 browser subapps, Modification date has the format:
"Wed Jun 17 12:30:48 CEST 2020"

It is strange that the year comes after the time.

Additionally as we are at a shortage of horizontal space in subapps, it should be re-evaluated if the Day "wed", the seconds ":48", and the timezone "CEST" should be included in the listed date. If they are deemed critical information, they could also be revealed "On rollover" instead of always present. 

Note that the format in M5 apps seems logical and sufficient. It is:

"Jun 17, 2020 12:30 PM"

I wonder if the change in M6 apps is intentional or a mistake.



 Comments   
Comment by Adam Siska [ 24/Jul/20 ]

TODO: verify that timezone from user profile settings is used (MGNLUI-5823)

Comment by Robert Šiška [ 30/Jul/20 ]

This breaks sorting by date - because the values provided to Grid are now strings, dates are sorted alphabetically instead of chronologically.

EDIT: Better solution would probably be to implement custom LocalDateTime renderer instead.

Comment by Quach Hao Thien [ 31/Jul/20 ]

yes, it's true, I tried to style the Date and Time separately like it's look in M5 by using HtmlRenderer but cause the sorting issue, better to go with a LocalDateTimeRender as you suggest. Thanks rsiska

Generated at Mon Feb 12 09:32:01 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.