Modify

Opened 9 years ago

Last modified 8 months ago

#3934 new defect

[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@… 9 years ago.
Patch to use trac.utils.datefmt functions for formatting and parsing dates

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by simon@…

Attachment: ticketstats-datefmt.diff added

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

comment:1 Changed 7 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 6 years ago by Ryan J Ollos

Owner: changed from Prentice Wongvibulsin to Ryan J Ollos

Reassigning ticket to new maintainer.

comment:3 Changed 6 years ago by Ryan J Ollos

Status: newassigned

comment:4 Changed 6 years ago by Ryan J Ollos

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

comment:5 Changed 4 years ago by Ryan J Ollos

Status: assignednew

comment:6 Changed 8 months ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.