Red Hat Bugzilla – Bug 1247777
fix date-time rendering to use a pre-defined format that will fit all locales
Last modified: 2016-02-10 14:47:09 EST
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 , 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.
*** This bug has been marked as a duplicate of bug 1247776 ***