Commit cb29ab44 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix week rounding computation.

parent e89b1773
...@@ -681,7 +681,7 @@ def _asMonthString(timestamp): ...@@ -681,7 +681,7 @@ def _asMonthString(timestamp):
def _asWeekString(timestamp): def _asWeekString(timestamp):
dt, _ = timestamp.split(' ') dt, _ = timestamp.split(' ')
day, month, year = dt.split(':', 1)[0].split('/') day, month, year = dt.split(':', 1)[0].split('/')
return '%s/%02i/%02i' % (year, MONTH_VALUE_DICT[month], int(day) / 7 * 7 + 1) return '%s/%02i/%02i' % (year, MONTH_VALUE_DICT[month], (int(day) - 1) / 7 * 7 + 1)
def _weekStringAsQuarterString(timestamp): def _weekStringAsQuarterString(timestamp):
year, month, _ = timestamp.split('/') year, month, _ = 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