Opened 18 years ago

Closed 17 years ago

#10811 closed defect (fixed)

In trac, the dates should be in the ISO8601 format

Reported by: vinc17@… Owned by: kvv@…
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: Cc: vinc17@…, ryandesign (Ryan Carsten Schmidt)
Port:

Description

In trac, the dates are currently in the American format, with a 2-digit year, which makes them very ambiguous (e.g. 04/05/06). They should be in the ISO8601 format (like in Bugzilla).

Change History (7)

comment:1 Changed 18 years ago by kvv@…

Status: newassigned

comment:2 Changed 18 years ago by cssdev

It seems that that can be changed by setting the appropriate PythonOption. See http://trac-hacks.org/ticket/317 for an example of changing the date format.

comment:3 Changed 18 years ago by vinc17@…

But the problem is to have the right locale installed. Moreover, ro_RO is probably not a good idea if one wants to avoid strings in Romanian. Under Linux, I'm using en_DK. Unfortunately it is not available under Mac OS X (in case the web server is hosted on a Mac OS X machine).

comment:4 Changed 17 years ago by nox@…

Priority: ExpectedNormal

comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

I too would like this. Unfortunately Trac (still!) does not support this. See this issue and this issue which superseded it. There are some patches in those issues, though, which may be sufficient.

comment:6 Changed 17 years ago by vinc17@…

http://dev.mutt.org/trac/report has ISO-8601 dates. But perhaps it uses a patched version.

comment:7 Changed 17 years ago by wsiegrist@…

Resolution: fixed
Status: assignedclosed

I changed the default formats to be non-locale based and force the YYYY-MM-DD HH:MM:SS format. This will of course need to be rehacked every Trac update until there are nice trac.ini options (scheduled for 0.11 and/or 0.12 it seems).

Note: See TracTickets for help on using tickets.