Commit c3996129 authored by Vincent Pelletier's avatar Vincent Pelletier

fixup! More date rounding fixes.

parent 790bf36e
......@@ -712,7 +712,7 @@ def _weekStringAsQuarterString(timestamp):
return '%s/%02i' % (year, (int(month) - 1) / 3 * 3 + 1)
def _roundWeek(dt):
return dt.replace(day=(dt.day / 7 - 1) * 7 + 1)
return dt.replace(day=(dt.day - 1) / 7 * 7 + 1)
def _asDayString(timestamp):
dt, _ = timestamp.split(' ')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment