Ticket #317 (closed task: fixed)

Opened 3 years ago

Last modified 2 years ago

trac site is international and should therefor use international date format

Reported by: ThurnerRupert Assigned to: athomas
Priority: high Component: TracHacks
Severity: trivial Keywords:
Cc: Trac Release: 0.9

Description

could you pls use the international date format yyyy-mm-dd on the trac hack site? if you need evidence why, you might want to check on http://www.cl.cam.ac.uk/~mgk25/iso-time.html.

the simplest way seems to set a country which uses this format, like china, or germany by

  PythonOption TracLocale de

Attachments

Change History

04/17/06 12:53:22 changed by athomas

Hmm, that is a good idea, but de_DE does not use iso8601 as far as I can see:

[root@swapoff:~]LANG=de_DE date +%x
17.04.2006

I also tried i18n, which according to #T1690 is supposed to work, but to no avail.

05/03/06 21:58:21 changed by anonymous

Interesting, most of us get non-traditional format in ls -l, maybe that confused ThurnerRupert. For what it's worth, the Hungarian locale may come to rescue:

$ unset LC_ALL; LANG=hu_HU date +%x
2006-05-03

05/04/06 03:29:36 changed by athomas

Pity about the time format :(

[athomas@o2zeopslin01:~]LANG=hu_HU date +%X
11.33.26

05/04/06 11:38:04 changed by chexum

Oops [grmbl] How about moving east a bit more? :)

$ unset LC_ALL; TZ=UTC LANG=ro_RO date +%x,%X
2006-05-04,09:36:32

05/04/06 13:46:01 changed by athomas

  • status changed from new to closed.
  • resolution set to fixed.

Looking good so far :)

Thanks for your help guys.

(follow-up: ↓ 7 ) 11/09/06 10:42:17 changed by quarl

LC_TIME=ro_RO doesn't work for me, but LC_TIME=en_DK does.

http://myy.helia.fi/~karte/international_iso-8601_date_on_thunderbird.html

$ LC_TIME=ro_RO date '+%x %X' 09.11.2006 01:41:49

$ LC_TIME=en_DK date '+%x %X' 2006-11-09 01:41:53

(in reply to: ↑ 6 ) 11/09/06 10:53:56 changed by coderanger

Replying to quarl:

LC_TIME=ro_RO doesn't work for me, but LC_TIME=en_DK does. http://myy.helia.fi/~karte/international_iso-8601_date_on_thunderbird.html $ LC_TIME=ro_RO date '+%x %X' 09.11.2006 01:41:49 $ LC_TIME=en_DK date '+%x %X' 2006-11-09 01:41:53

Please take this up on http://trac.edgewall.org.


Add/Change #317 (trac site is international and should therefor use international date format)




Change Properties
Action