Changeset 95 in tailor


Ignore:
Timestamp:
07/16/04 17:41:47 (9 years ago)
Author:
lele@…
Hash name:
20040716154147-97f81-71d6d1998c42f7a4ea65b038e031793bb41bc24d
Message:

Corrected the date format passed to strptime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/cvs.py

    r94 r95  
    266266        from os.path import join, exists 
    267267        from time import strptime 
     268        from datetime import datetime 
    268269 
    269270        cvslog = CvsLog(working_dir=root) 
     
    280281            # Assume this is from __getGlobalRevision() 
    281282            since = sincerev 
    282             y,m,d,hh,mm,ss,d1,d2,d3=strptime(sincerev, "%a %b %d %H:%M:%S %Y") 
     283            y,m,d,hh,mm,ss,d1,d2,d3 = strptime(sincerev, "%Y-%m-%d %H:%M:%S") 
    283284            sincedate = datetime(y,m,d,hh,mm,ss) 
    284285             
Note: See TracChangeset for help on using the changeset viewer.