Changeset 4014

Show
Ignore:
Timestamp:
07/14/08 15:49:59 (4 months ago)
Author:
echo0101
Message:

More 2.4 compatibility changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tracticketstatsplugin/0.11/ticketstats-plugin/ticketstats/ticketstats.py

    r4013 r4014  
    135135                        #       Maybe a wrapper should be written. 
    136136 
    137                         at_date = datetime.strptime(grab_at_date, "%m/%d/%Y"
     137                        at_date = datetime(*strptime(grab_at_date, "%m/%d/%Y")[0:6]
    138138                        at_date = datetime.combine(at_date, time(11,59,59,0,utc)) # Add tzinfo 
    139139 
    140                         from_date = datetime.strptime(grab_from_date, "%m/%d/%Y"
     140                        from_date = datetime(*strptime(grab_from_date, "%m/%d/%Y")[0:6]
    141141                        from_date = datetime.combine(from_date, time(0,0,0,0,utc)) # Add tzinfo 
    142142