small correction on timezone management
authorymh <ymh.work@gmail.com>
Thu, 16 Oct 2014 21:51:48 +0200
changeset 32 dc1c745850d8
parent 31 2323ee3ad20f
child 33 c8af05668f2e
child 34 dc21d793b5d4
small correction on timezone management
annot-server/baseserver.py
--- a/annot-server/baseserver.py	Thu Oct 16 18:25:21 2014 +0200
+++ b/annot-server/baseserver.py	Thu Oct 16 21:51:48 2014 +0200
@@ -28,6 +28,7 @@
         ts = params.setdefault('ts', datetime.datetime.now(tzutc()))
         if ts.tzinfo is None:
             ts = ts.replace(tzinfo=tzutc())
+            params['ts'] = ts
         uuid_val = params.setdefault('uuid', uuid.uuid4())
 
         params_broadcast = copy.copy(params)