Changeset 8183 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 16 Apr 2012, 21:07:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
r8159 r8183 32 32 from zope.i18n import translate 33 33 from zope.publisher.browser import TestRequest 34 from zope.component import getUtility 34 35 from waeup.kofa.browser.interfaces import IPDFCreator 36 from waeup.kofa.interfaces import IKofaUtils 35 37 from waeup.kofa.interfaces import MessageFactory as _ 36 38 … … 328 330 canvas.setFont("Helvetica", 9) 329 331 if not getattr(doc, 'kofa_nodate', False): 330 today = datetime.now().strftime('%d/%m/%Y %H:%M:%S') 332 tz = getUtility(IKofaUtils).tzinfo 333 today = datetime.now(tz).strftime('%d/%m/%Y %H:%M:%S') 331 334 canvas.drawString(2.2*cm, 0.5 * inch, 332 335 translate(_(u'Date: ${a}', mapping = {'a': today})))
Note: See TracChangeset for help on using the changeset viewer.