After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 567080 - Use an unique format for dates (maybe configurable)
Use an unique format for dates (maybe configurable)
Status: RESOLVED FIXED
Product: damned-lies
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Claude Paroz
damned-lies Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-01-08 21:20 UTC by Luca Ferretti
Modified: 2009-01-10 14:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Webshot of page linked in bug description (100.50 KB, image/png)
2009-01-08 21:40 UTC, Luca Ferretti
  Details
Unify date formats (4.46 KB, patch)
2009-01-09 23:38 UTC, Claude Paroz
none Details | Review

Description Luca Ferretti 2009-01-08 21:20:21 UTC
Currently dates and times showed on l10n.gnome.org are a little "fuzzy"

Example:
 See http://l10n.gnome.org/vertimus/367/345/82 there are 3 formats:
    * "state" date using English (WW DD MM YY HH:MM AM/PM) format
    * POT file update date using UTC
    * actions dates using local times

Those dates/times should use the same format, better if localized based on browser languas, even better if user configurable (format, timezone...)
Comment 1 Luca Ferretti 2009-01-08 21:40:57 UTC
Created attachment 126059 [details]
Webshot of page linked in bug description
Comment 2 Claude Paroz 2009-01-09 23:38:05 UTC
Created attachment 126147 [details] [review]
Unify date formats

I have a patch here to address these problems. I have reduced date formats in damned-lies to two formats:
- a simple date format wich is taken from the Django translatable DATE_FORMAT (day, month, year)
- a complete format, translatable in damned-lies (day, month, year, hour, min, sec, timezone) which would be used in all cases in your screenshot.

I'd like to have Stéphane's opinion on this. I had to create a custom tag, as default 'date' tag doesn't look for the translated DATE_FORMAT id (and unfortunately humanize.naturalday call this tag also).
Comment 3 Claude Paroz 2009-01-10 14:39:15 UTC
I finally adopted another approach that let us keep using humanize. Committed.
http://svn.gnome.org/viewvc/damned-lies?view=revision&revision=1330