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/students/utils.py

    r8183 r8186  
    3939from waeup.kofa.interfaces import MessageFactory as _
    4040from waeup.kofa.students.interfaces import IStudentsUtils
     41from waeup.kofa.utils.helpers import now
    4142
    4243SLIP_STYLE = [
     
    208209      frame_footer = Frame(1*cm,0,width-(2*cm),1*cm)
    209210      tz = getUtility(IKofaUtils).tzinfo
    210       timestamp = datetime.now(tz).strftime("%d/%m/%Y %H:%M:%S")
     211      timestamp = now(tz).strftime("%d/%m/%Y %H:%M:%S %z %Z")
    211212      left_text = '<font size=10>%s</font>' % timestamp
    212213      story.append(Paragraph(left_text, style["Normal"]))
Note: See TracChangeset for help on using the changeset viewer.