Ignore:
Timestamp:
16 Apr 2012, 21:07:28 (13 years ago)
Author:
Henrik Bettermann
Message:

Part 2: Consider time zone when creating datetime strings for histories, filenames etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r8180 r8183  
    207207      story = []
    208208      frame_footer = Frame(1*cm,0,width-(2*cm),1*cm)
    209       timestamp = datetime.now().strftime("%d/%m/%Y %H:%M:%S")
     209      tz = getUtility(IKofaUtils).tzinfo
     210      timestamp = datetime.now(tz).strftime("%d/%m/%Y %H:%M:%S")
    210211      left_text = '<font size=10>%s</font>' % timestamp
    211212      story.append(Paragraph(left_text, style["Normal"]))
Note: See TracChangeset for help on using the changeset viewer.