[Zope-Checkins] CVS: Zope/ZServer/medusa - logger.py:1.12.48.1
Steve Alexander
steve@cat-box.net
Wed, 10 Oct 2001 04:33:52 -0400
Update of /cvs-repository/Zope/ZServer/medusa
In directory cvs.zope.org:/tmp/cvs-serv3466
Modified Files:
Tag: stevea-fix_medusa_tuple_typo-branch
logger.py
Log Message:
Changed calls to mktime to take a nine-tuple rather than nine arguments.
As reported to Zope-dev by Terry Kerr, 2001-10-10.
=== Zope/ZServer/medusa/logger.py 1.12 => 1.12.48.1 ===
(yr, mo, day, hr, min, sec, wd, jday, dst) = time.localtime(time.time())
if freq == 'daily':
- return time.mktime(yr,mo,day+1, 0,0,0, 0,0,-1)
+ return time.mktime((yr,mo,day+1, 0,0,0, 0,0,-1))
elif freq == 'weekly':
- return time.mktime(yr,mo,day-wd+7, 0,0,0, 0,0,-1) # wd(monday)==0
+ return time.mktime((yr,mo,day-wd+7, 0,0,0, 0,0,-1)) # wd(monday)==0
elif freq == 'monthly':
- return time.mktime(yr,mo+1,1, 0,0,0, 0,0,-1)
+ return time.mktime((yr,mo+1,1, 0,0,0, 0,0,-1))
else:
return None # not a date-based backup