Show
Ignore:
Timestamp:
06/20/06 23:01:00 (18 years ago)
Author:
jerome
Message:

Fixed date formatting problems with MySQL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2950 r2953  
    621621                date = fields.get("createTimestamp", ["19700101000000Z"])[0] # It's in UTC ! 
    622622                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") 
    624624                lastjob.Exists = True 
    625625        return lastjob 
     
    13761376                date = fields.get("createTimestamp", ["19700101000000Z"])[0] # It's in UTC ! 
    13771377                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") 
    13791379                if ((start is None) and (end is None)) or \ 
    13801380                   ((start is None) and (job.JobDate <= end)) or \