[Zodb-checkins] CVS: StandaloneZODB/zLOG - MinimalLogger.py:1.7
Jeremy Hylton
jeremy@zope.com
Fri, 15 Mar 2002 11:40:07 -0500
Update of /cvs-repository/StandaloneZODB/zLOG
In directory cvs.zope.org:/tmp/cvs-serv7571
Modified Files:
MinimalLogger.py
Log Message:
Change log_time() to use localtime instead of GMT.
Also change to use time.localtime() instead of calling time.time()
first. This is a Python 2.1-ism.
Per request by Andreas Jung.
=== StandaloneZODB/zLOG/MinimalLogger.py 1.6 => 1.7 ===
"""
return ("%4.4d-%2.2d-%2.2dT%2.2d:%2.2d:%2.2d"
- % time.gmtime(time.time())[:6])
+ % time.localtime()[:6])
def _set_log_dest(dest):
global _log_dest