test bug
authorCyril Robert <Cyril Robert cyrilrbt@gmail.com>
Wed, 30 Jun 2010 15:39:10 +0000 (11:39 -0400)
committerCyril Robert <Cyril Robert cyrilrbt@gmail.com>
Wed, 30 Jun 2010 15:39:10 +0000 (11:39 -0400)
auf_savoirs_en_partage_django/savoirs/lib/calendrier.py

index 5e64ac1..a2641f0 100644 (file)
@@ -35,5 +35,6 @@ def combine(when, tz):
                           when.hour, when.minute, tzinfo = pytz.timezone(tz))
     #r = r.replace(tzinfo = pytz.timezone("UTC"))
     t = r.utctimetuple()
-    r = datetime.datetime(*(t[0:6]), tzinfo = pytz.timezone("UTC"))
+    r = datetime.datetime(t[0],t[1],t[2],t[3],t[4],t[5], 
+                          tzinfo = pytz.timezone("UTC"))
     return r