Bug 1247777 - fix date-time rendering to use a pre-defined format that will fit all locales
Summary: fix date-time rendering to use a pre-defined format that will fit all locales
Keywords:
Status: CLOSED DUPLICATE of bug 1247776
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-webadmin
Version: 3.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.6.0
Assignee: Alexander Wels
QA Contact: Pavel Stehlik
URL:
Whiteboard: ux
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-28 20:43 UTC by Einav Cohen
Modified: 2016-02-10 19:47 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-07-29 11:42:47 UTC
oVirt Team: UX
Embargoed:


Attachments (Terms of Use)

Description Einav Cohen 2015-07-28 20:43:25 UTC
right now, we are using two hard-coded formats that we defined for rendering date-time values for Japanese, and for non-Japanese locales:

- "yyyy-MM-dd, HH:mm" for Japanese.

- "yyyy-MMM-dd, HH:mm" for all other locales. 

we should not write and maintain our own logic for manipulating date-time formats per locale - we should use a predefined date-time format that will take care of the manipulation for us. 

following Alexander's suggestion in https://gerrit.ovirt.org/#/c/42875/: I recommend going over all pre-defined date-time formats in [1], looking for the one that renders "yyyy-MMM-dd, HH:mm" (or something very close to it) in the 'en-US' locale, and go with that format for all locales - and, IIUC, the format will adjust itself properly for every locale. 

[1] http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/DateTimeFormat.PredefinedFormat.html

Comment 1 Einav Cohen 2015-07-29 11:42:47 UTC

*** This bug has been marked as a duplicate of bug 1247776 ***


Note You need to log in before you can comment on or make changes to this bug.