Changeset 3036

Show
Ignore:
Timestamp:
01/11/08 15:00:47 (1 year ago)
Author:
khundeen
Message:

FIXED - # 2325: Date error.
http://trac-hacks.org/ticket/2325

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tracmetrixplugin/0.11/tracmetrixplugin/web_ui.py

    r3017 r3036  
    5656def last_day_of_month(year, month): 
    5757     
    58     return datetime(year, (month+1)%12 , 1, tzinfo=utc) - timedelta(days=1) 
     58    return datetime(year, (month%12)+1 , 1, tzinfo=utc) - timedelta(days=1) 
    5959 
    6060class PDashboard(Component):