Ignore:
Timestamp:
17 Apr 2012, 00:31:10 (13 years ago)
Author:
uli
Message:

Use new helper functions to compute pytz timezones correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py

    r8183 r8186  
    3434from zope.component import getUtility
    3535from waeup.kofa.browser.interfaces import IPDFCreator
     36from waeup.kofa.utils.helpers import now
    3637from waeup.kofa.interfaces import IKofaUtils
    3738from waeup.kofa.interfaces import MessageFactory as _
     
    331332        if not getattr(doc, 'kofa_nodate', False):
    332333            tz = getUtility(IKofaUtils).tzinfo
    333             today = datetime.now(tz).strftime('%d/%m/%Y %H:%M:%S')
     334            today = now(tz).strftime('%d/%m/%Y %H:%M:%S %z %Z')
    334335            canvas.drawString(2.2*cm, 0.5 * inch,
    335336                translate(_(u'Date: ${a}', mapping = {'a': today})))
Note: See TracChangeset for help on using the changeset viewer.