Modify

Opened 7 years ago

Closed 7 years ago

#2325 closed defect (fixed)

Date error.

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

Description (last modified by khundeen)

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 7 years ago by anonymous

  • Component changed from TracHacks to TracMetrixPlugin
  • Owner changed from athomas to khundeen
  • Trac Release changed from 0.10 to 0.11

comment:2 Changed 7 years ago by khundeen

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the patch

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.