Modify

Opened 6 years ago

Last modified 14 months ago

#3934 new defect

[Patch] Locale is not used for date formats

Reported by: simon@… Owned by: rjollos
Priority: normal Component: TracTicketStatsPlugin
Severity: normal Keywords:
Cc: simon@… Trac Release: 0.10

Description

Dates are always in mm/dd/yy format; the system locale is not used to format dates.

There is a patch to replace use of time.strptime() and time.strftime() with trac.util.datefmt.parse_date() and trac.util.datefmt.format_date() at: http://bleah.co.uk/~simon/stuff/ticketstats-datefmt.diff

Attachments (1)

ticketstats-datefmt.diff (3.3 KB) - added by simon@… 6 years ago.
Patch to use trac.utils.datefmt functions for formatting and parsing dates

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by simon@…

Patch to use trac.utils.datefmt functions for formatting and parsing dates

comment:1 Changed 4 years ago by rjollos

  • Summary changed from Locale is not used for date formats to [Patch] Locale is not used for date formats

comment:2 Changed 4 years ago by rjollos

  • Owner changed from echo0101 to rjollos

Reassigning ticket to new maintainer.

comment:3 Changed 4 years ago by rjollos

  • Status changed from new to assigned

comment:4 Changed 4 years ago by rjollos

(In [9501]) Use functions from trac.util.datefmt rather than time. Refs #3934.

comment:5 Changed 14 months ago by rjollos

  • Status changed from assigned to new

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.