Commit ee428750 authored by Jérome Perrin's avatar Jérome Perrin

fix bug generating titles of secondary periods

The month was taken from a date in the wrong timezone
Signed-off-by: Aurel's avatarAurélien Calonne <aurel@nexedi.com>
parent aab014a9
...@@ -75,10 +75,10 @@ while date < context.getStopDate():\n ...@@ -75,10 +75,10 @@ while date < context.getStopDate():\n
\n \n
if frequency == \'quarterly\':\n if frequency == \'quarterly\':\n
period.setShortTitle(\'%s-%s\' % (\n period.setShortTitle(\'%s-%s\' % (\n
date.strftime(\'%Y %m\'), (end_date - 1).strftime(\'%m\')))\n start_date.strftime(\'%Y %m\'), (end_date - 1).strftime(\'%m\')))\n
else:\n else:\n
period.setShortTitle(date.strftime(\'%Y-%m\'))\n period.setShortTitle(start_date.strftime(\'%Y-%m\'))\n
period.setTitle(str(translateString(date.strftime(\'%B\'))))\n period.setTitle(str(translateString(start_date.strftime(\'%B\'))))\n
\n \n
if open_periods:\n if open_periods:\n
period.start()\n period.start()\n
......
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