[Checkins] SVN: zope.bugchecker/trunk/s Include start time in UTC in report header.

Tres Seaver tseaver at palladion.com
Thu Apr 15 13:38:27 EDT 2010


Log message for revision 110943:
  Include start time in UTC in report header.

Changed:
  U   zope.bugchecker/trunk/setup.py
  U   zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py

-=-
Modified: zope.bugchecker/trunk/setup.py
===================================================================
--- zope.bugchecker/trunk/setup.py	2010-04-15 17:38:26 UTC (rev 110942)
+++ zope.bugchecker/trunk/setup.py	2010-04-15 17:38:27 UTC (rev 110943)
@@ -40,7 +40,8 @@
       license='ZPL 2.1',
       namespace_packages=['zope'],
       install_requires=[
-        'launchpadlib'
+        'launchpadlib',
+        'pytz',
       ],
       entry_points="""
       [console_scripts]

Modified: zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py
===================================================================
--- zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py	2010-04-15 17:38:26 UTC (rev 110942)
+++ zope.bugchecker/trunk/src/zope/bugchecker/bugchecker.py	2010-04-15 17:38:27 UTC (rev 110943)
@@ -71,6 +71,7 @@
 import sys
 
 from launchpadlib.launchpad import Launchpad
+from pytz import utc
 
 class BugTracker(object):
     """Check the BugTracker for new bugs"""
@@ -186,8 +187,10 @@
 
     rheostat = Rheostat(verbose)
 
+    start = datetime.datetime.now(utc)
     rheostat(1, '=' * 78)
-    rheostat(1, 'Languishing bugs report')
+    rheostat(1, 'Languishing bugs report:   %s'
+                    % start.strftime('%Y-%m-%dT%H:%M%Z'))
     rheostat(1, '=' * 78)
     rheostat(1, 'States included:  %s' % (', '.join(states)))
     rheostat(1, 'Minimum age:      %s' % days)



More information about the checkins mailing list