Commit f084a2a2 authored by Yusei Tahara's avatar Yusei Tahara

Fix variable name. datetime is wrong. date is correct.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34082 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e834ca31
......@@ -524,19 +524,19 @@ def atTheEndOfPeriod(date, period):
def copyDate(date, year=None, month=None, day=None,
hour=None, minute=None, second=None, timezone=None):
if year is None:
year = datetime.year()
year = date.year()
if month is None:
month = datetime.month()
month = date.month()
if day is None:
day = datetime.day()
day = date.day()
if hour is None:
hour = datetime.hour()
hour = date.hour()
if minute is None:
minute = datetime.minute()
minute = date.minute()
if second is None:
second = datetime.second()
second = date.second()
if timezone is None:
timezone = datetime.timezone()
timezone = date.timezone()
return DateTime('%i/%i/%i %i:%i:%d %s' % (year, month, day,
hour, minute, second,
timezone))
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