gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 36250 - gump/trunk/python/gump/stats/mysql
Date Wed, 11 Aug 2004 20:23:47 GMT
Author: ajack
Date: Wed Aug 11 13:23:47 2004
New Revision: 36250

Modified:
   gump/trunk/python/gump/stats/mysql/statsdb.py
Log:
Ignore: 0000-00-00 00:00:00

Modified: gump/trunk/python/gump/stats/mysql/statsdb.py
==============================================================================
--- gump/trunk/python/gump/stats/mysql/statsdb.py	(original)
+++ gump/trunk/python/gump/stats/mysql/statsdb.py	Wed Aug 11 13:23:47 2004
@@ -190,8 +190,10 @@
                         if isinstance(value,datetime.datetime):
                             setattr(stats,attr,value)
                         else:
-                            setattr(stats,attr,
-                                datetime.datetime.fromtimestamp(time.mktime(time.strptime(value,'%Y-%m-%d
%H:%M:%S'))))
+                            if not value == '0000-00-00 00:00:00':
+                                setattr(stats,attr,
+                                    datetime.datetime.fromtimestamp(time.mktime(time.strptime(value,
+                                                                                '%Y-%m-%d
%H:%M:%S'))))
                     else:    
                         setattr(stats,attr,value)
         

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org


Mime
View raw message