Changeset 4260

Show
Ignore:
Timestamp:
07/09/08 13:37:14 (1 month ago)
Author:
paul
Message:

Fixed a bug exposed by getting stricter in try:except blocks, in the
getDatetimeFromString() function in dates.py.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/lib/dates.py

    r4237 r4260  
    217217            # Fall back to the current locale setting in user's os account: 
    218218            try: 
    219                 ret = datetime.datetime(*time.strptime(strVal, "%x %X")
     219                ret = datetime.datetime(*time.strptime(strVal, "%x %X")[:7]
    220220            except IndexError: 
    221221                pass