dabo Commit
Revision 4260
Date: 2008-07-09 13:37:14 -0700 (Wed, 09 Jul 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4260

Changed:
U   trunk/dabo/lib/dates.py

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



Diff:
Modified: trunk/dabo/lib/dates.py
===================================================================
--- trunk/dabo/lib/dates.py     2008-07-09 20:15:13 UTC (rev 4259)
+++ trunk/dabo/lib/dates.py     2008-07-09 20:37:14 UTC (rev 4260)
@@ -216,7 +216,7 @@
                if dtFormat is None:
                        # Fall back to the current locale setting in user's os 
account:
                        try:
-                               ret = datetime.datetime(*time.strptime(strVal, 
"%x %X"))
+                               ret = datetime.datetime(*time.strptime(strVal, 
"%x %X")[:7])
                        except IndexError:
                                pass
        return ret




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to