From ee42875011673f596695493e5346ccd4ca17d150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 12 Jul 2012 09:39:10 +0200 Subject: [PATCH] fix bug generating titles of secondary periods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The month was taken from a date in the wrong timezone Signed-off-by: Aurélien Calonne <aurel@nexedi.com> --- .../AccountingPeriod_createSecondaryPeriod.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml index 114f615924..83a5b7efee 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createSecondaryPeriod.xml @@ -75,10 +75,10 @@ while date < context.getStopDate():\n \n if frequency == \'quarterly\':\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 - period.setShortTitle(date.strftime(\'%Y-%m\'))\n - period.setTitle(str(translateString(date.strftime(\'%B\'))))\n + period.setShortTitle(start_date.strftime(\'%Y-%m\'))\n + period.setTitle(str(translateString(start_date.strftime(\'%B\'))))\n \n if open_periods:\n period.start()\n -- 2.30.9