From f084a2a2f88c6d2d8cea6e0d3c0a26ac464e772a Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Thu, 25 Mar 2010 03:20:19 +0000
Subject: [PATCH] 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
---
 product/ERP5Type/DateUtils.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/product/ERP5Type/DateUtils.py b/product/ERP5Type/DateUtils.py
index c15c6214ac..a34b68f3d2 100644
--- a/product/ERP5Type/DateUtils.py
+++ b/product/ERP5Type/DateUtils.py
@@ -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))
-- 
2.30.9