[Opensrf-commits] r2059 - trunk/src/python/osrf (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Nov 9 08:50:45 EST 2010


Author: dbs
Date: 2010-11-09 08:50:43 -0500 (Tue, 09 Nov 2010)
New Revision: 2059

Modified:
   trunk/src/python/osrf/log.py
Log:
Minutes and months were reversed in Python logging timestamps


Modified: trunk/src/python/osrf/log.py
===================================================================
--- trunk/src/python/osrf/log.py	2010-11-09 01:59:03 UTC (rev 2058)
+++ trunk/src/python/osrf/log.py	2010-11-09 13:50:43 UTC (rev 2059)
@@ -153,7 +153,7 @@
     global LOG_TYPE
 
     epoch = time.time()
-    timestamp = time.strftime('%Y-%M-%d %H:%m:%S', time.localtime(epoch))
+    timestamp = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(epoch))
     timestamp += '.%s' % str('%0.3f' % epoch)[-3:] # grab the millis
 
     logfile = None



More information about the opensrf-commits mailing list