Changeset 2015

Show
Ignore:
Timestamp:
01/08/05 12:25:48 (19 years ago)
Author:
jalet
Message:

Fixed the time zone field in page_log output to make PrintAnalyzer? happy

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/dumpykota

    r2013 r2015  
    2424# 
    2525# $Log$ 
     26# Revision 1.20  2005/01/08 11:25:48  jalet 
     27# Fixed the time zone field in page_log output to make PrintAnalyzer happy 
     28# 
    2629# Revision 1.19  2005/01/08 10:52:01  jalet 
    2730# Now dumpykota can dump the history into CUPS' page_log format, allowing the 
     
    308311            username = entry[fields["username"]] 
    309312            jobid = entry[fields["jobid"]] 
    310             jobdate = DateTime.ISO.ParseDateTime(entry[fields["jobdate"]]).strftime("%d/%b/%Y:%H:%M:%S %z") 
     313            jobdate = DateTime.ISO.ParseDateTime(entry[fields["jobdate"]]) 
     314            gmtoffset = jobdate.gmtoffset() 
     315            jobdate = "%s %+03i00" % (jobdate.strftime("%d/%b/%Y:%H:%M:%S"), gmtoffset.hour) 
    311316            jobsize = entry[fields["jobsize"]] 
    312317            copies = entry[fields["copies"]]