[Zope-Checkins] CVS: Zope/utilities - requestprofiler.py:1.14.8.1

Andreas Jung andreas@digicool.com
Thu, 21 Feb 2002 09:57:56 -0500


Update of /cvs-repository/Zope/utilities
In directory cvs.zope.org:/tmp/cvs-serv1344/utilities

Modified Files:
      Tag: Zope-2_5-branch
	requestprofiler.py 
Log Message:
changed --today option to use localtime() instead of gmtime()
(BigM logs are written using localtime())


=== Zope/utilities/requestprofiler.py 1.14 => 1.14.8.1 ===
                 resolution=int(val)
             if opt=='--today':
-                now = time.gmtime(time.time())
+                now = time.localtime(time.time())
                 # for testing - now = (2001, 04, 19, 0, 0, 0, 0, 0, -1)
                 start = list(now)
                 start[3] = start[4] = start[5] = 0
@@ -749,6 +749,7 @@
                 end = list(now)
                 end[3] = 23; end[4] = 59; end[5] = 59
                 end = time.mktime(end)
+
             if opt=='--start':
                 start = getdate(val)
             if opt=='--end':