Changeset 2015
- Timestamp:
- 01/08/05 12:25:48 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/dumpykota
r2013 r2015 24 24 # 25 25 # $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 # 26 29 # Revision 1.19 2005/01/08 10:52:01 jalet 27 30 # Now dumpykota can dump the history into CUPS' page_log format, allowing the … … 308 311 username = entry[fields["username"]] 309 312 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) 311 316 jobsize = entry[fields["jobsize"]] 312 317 copies = entry[fields["copies"]]