Modify

Opened 16 years ago

Closed 6 years ago

#3934 closed defect (fixed)

[Patch] Locale is not used for date formats

Reported by: simon@… Owned by:
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@… 16 years ago.
Patch to use trac.utils.datefmt functions for formatting and parsing dates

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by simon@…

Attachment: ticketstats-datefmt.diff added

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

comment:1 Changed 14 years ago by Ryan J Ollos

Summary: Locale is not used for date formats[Patch] Locale is not used for date formats

comment:2 Changed 14 years ago by Ryan J Ollos

Owner: changed from Prentice Wongvibulsin to Ryan J Ollos

Reassigning ticket to new maintainer.

comment:3 Changed 14 years ago by Ryan J Ollos

Status: newassigned

comment:4 Changed 14 years ago by Ryan J Ollos

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

comment:5 Changed 12 years ago by Ryan J Ollos

Status: assignednew

comment:6 Changed 8 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

comment:7 Changed 6 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

Should be fixed in r17235.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.