Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

Last modified 13 years ago

#3803 closed enhancement (duplicate)

Configurable date and time format

Reported by: Pedro Algarvio, aka, s0undt3ch <ufs@…> 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)

comment:1 by anonymous, 18 years ago

By default it should be in ISO format ala YYYY-MM-DD for the dates.

comment:2 by Emmanuel Blot, 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

comment:3 by Christian Boos, 17 years ago

Resolution: duplicate
Status: newclosed

See #2182.

in reply to:  1 ; comment:4 by anonymous, 14 years ago

Replying to anonymous:

By default it should be in ISO format ala YYYY-MM-DD for the dates.

I agree

in reply to:  4 ; comment:5 by anonymous, 14 years ago

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

in reply to:  5 comment:6 by anonymous, 13 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.