Commit 8c96b0a5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix: undefined 'localtime' and 'time'.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19213 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 07368375
...@@ -30,7 +30,7 @@ from DateTime import DateTime as DateTimeKlass ...@@ -30,7 +30,7 @@ from DateTime import DateTime as DateTimeKlass
import math import math
from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS,\ from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS,\
getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2, DateTimeError,\ getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2, DateTimeError,\
SyntaxError, DateError, TimeError SyntaxError, DateError, TimeError, localtime, time
STATE_KEY = 'str' STATE_KEY = 'str'
...@@ -196,6 +196,8 @@ def DateTime_parse(self, st, datefmt=getDefaultDateFormat()): ...@@ -196,6 +196,8 @@ def DateTime_parse(self, st, datefmt=getDefaultDateFormat()):
year=ints[2] year=ints[2]
del ints[:3] del ints[:3]
import pdb; pdb.set_trace()
day = None
if day is None: if day is None:
# Use today's date. # Use today's date.
year,month,day = localtime(time())[:3] year,month,day = localtime(time())[:3]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment