tracmetrix pdashboard does not create backlog statistics for december (month=12)
|Reported by:||anonymous||Owned by:||Bhuricha Deen Sethanandha|
Description (last modified by )
def last_day_of_month(year, month):
return datetime(year, (month%12)+1, 1, tzinfo=utc) - timedelta(days=1)
contains a bug because it will produce:
for december 2008.
it computes one day before january 1st of the current year (not the next).
this can be fixed by changing the return line to:
return datetime(year+(month/12), (month%12)+1 , 1, tzinfo=utc) - timedelta(days=1)
and thereby adding 1 to the year in case the month is december.