Modify

Opened 16 years ago

Closed 16 years ago

#2325 closed defect (fixed)

Date error.

Reported by: edward.chwieseni@… Owned by: Bhuricha Deen Sethanandha
Priority: normal Component: TracMetrixPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Bhuricha Deen Sethanandha)

In web_ui.py I changed last_day_of_month to cope with values less than 1 or exceeding 12 as follows:

def last_day_of_month(year, month):

return datetime(year, (month%12)+1, 1, tzinfo=utc) - timedelta(days=1)

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by anonymous

Component: TracHacksTracMetrixPlugin
Owner: changed from Alec Thomas to Bhuricha Deen Sethanandha
Trac Release: 0.100.11

comment:2 Changed 16 years ago by Bhuricha Deen Sethanandha

Description: modified (diff)
Resolution: fixed
Status: newclosed

Thanks for the patch

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Bhuricha Deen Sethanandha.
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.