Changeset 2953
- Timestamp:
- 06/20/06 23:01:00 (18 years ago)
- Location:
- pykota/trunk
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/printquota.cgi
r2909 r2953 241 241 else : 242 242 billingcode_url = None 243 curdate = DateTime.ISO.ParseDateTime(str(job.JobDate)) 243 244 self.report.append('<tr class="%s">%s</tr>' % \ 244 245 (oddevenclass, \ 245 246 "".join(["<td>%s</td>" % (h or " ") \ 246 for h in (str( job.JobDate[:19]), \247 for h in (str(curdate)[:19], \ 247 248 _(job.JobAction), \ 248 249 username_url, \ … … 264 265 job.JobPages)]))) 265 266 self.report.append('</table>') 266 d = DateTime.ISO.ParseDateTime(str(job.JobDate))267 267 dico = { "history" : 1, 268 "datelimit" : "%04i%02i%02i %02i:%02i:%02i" % (d.year, d.month, d.day, d.hour, d.minute, d.second), 268 "datelimit" : "%04i-%02i-%02i %02i:%02i:%02i" \ 269 % (curdate.year, \ 270 curdate.month, \ 271 curdate.day, \ 272 curdate.hour, \ 273 curdate.minute, \ 274 curdate.second), 269 275 } 270 276 if user and user.Exists : -
pykota/trunk/NEWS
r2937 r2953 22 22 PyKota NEWS : 23 23 24 - 1.25alpha7 (2006-06-20) : 25 26 - Fixed some date formatting problems when retrieving the 27 printing history with MySQL. 28 29 - Began code cleaning. 30 24 31 - 1.25alpha6 (2006-06-13) : 25 32 -
pykota/trunk/pykota/storage.py
r2945 r2953 745 745 if start and end and (start > end) : 746 746 (start, end) = (end, start) 747 try : 748 if len(start) == 17 : 749 start = "%s-%s-%s %s" % (start[0:4], start[4:6], start[6:8], start[9:]) 750 except TypeError : 751 pass 752 753 try : 754 if len(end) == 17 : 755 end = "%s-%s-%s %s" % (end[0:4], end[4:6], end[6:8], end[9:]) 756 except TypeError : 757 pass 758 747 759 return (start, end) 748 760 -
pykota/trunk/pykota/storages/ldapstorage.py
r2950 r2953 621 621 date = fields.get("createTimestamp", ["19700101000000Z"])[0] # It's in UTC ! 622 622 mxtime = DateTime.strptime(date[:14], "%Y%m%d%H%M%S").localtime() 623 lastjob.JobDate = mxtime.strftime("%Y %m%d %H:%M:%S")623 lastjob.JobDate = mxtime.strftime("%Y-%m-%d %H:%M:%S") 624 624 lastjob.Exists = True 625 625 return lastjob … … 1376 1376 date = fields.get("createTimestamp", ["19700101000000Z"])[0] # It's in UTC ! 1377 1377 mxtime = DateTime.strptime(date[:14], "%Y%m%d%H%M%S").localtime() 1378 job.JobDate = mxtime.strftime("%Y %m%d %H:%M:%S")1378 job.JobDate = mxtime.strftime("%Y-%m-%d %H:%M:%S") 1379 1379 if ((start is None) and (end is None)) or \ 1380 1380 ((start is None) and (job.JobDate <= end)) or \