#3803 closed enhancement (duplicate)
Configurable date and time format
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | general | Version: | 0.10rc1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Trac should allow an admin to configure the date and time format.
It could and should follow python's strftime format table.
It would mean for example 2 more config directives under [trac]
, for example:
dateformat = %Y - %b - %d timeformat = %H:%M:%S
those would then be passed to strftime()
whenever a visual representation was needed.
Attachments (0)
Change History (6)
follow-up: 4 comment:1 by , 18 years ago
comment:2 by , 18 years ago
Milestone: | 0.10.1 |
---|
You can change the date format if you define a custom locale: TracFaq#how-do-i-change-the-format-used-for-displaying-date-and-time
follow-up: 5 comment:4 by , 15 years ago
follow-up: 6 comment:5 by , 14 years ago
comment:6 by , 14 years ago
Replying to anonymous:
Replying to anonymous:
Replying to anonymous:
By default it should be in ISO format ala YYYY-MM-DD for the dates.
I agree
Me too
ISO-8601 for the win! ISO-8601 sorts properly, is unambiguous regarding what is year or month or day.
An alternative is allowing the user to set up their own preference. While selecting a locale is nice, hardly any of the available locales are useful for developers. Therefore allowing an override/customize for date and time formats would be highly desirable.
By default it should be in ISO format ala YYYY-MM-DD for the dates.