Minutes and months were reversed in Python logging timestamps
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 9 Nov 2010 13:50:43 +0000 (13:50 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 9 Nov 2010 13:50:43 +0000 (13:50 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2059 9efc2488-bf62-4759-914b-345cdb29e865

src/python/osrf/log.py

index 906fd54..c27ee57 100644 (file)
@@ -153,7 +153,7 @@ def __log_file(msg):
     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