Commit 7e14ffd0 authored by Ivan Tyagov's avatar Ivan Tyagov

Return saved DAteTiem values as UTC.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17868 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 44bc307f
...@@ -153,7 +153,7 @@ def _mysql_timestamp_converter(s): ...@@ -153,7 +153,7 @@ def _mysql_timestamp_converter(s):
return DateTime("%04d-%02d-%02d %02d:%02d:%02d" % tuple(parts)) return DateTime("%04d-%02d-%02d %02d:%02d:%02d" % tuple(parts))
def DateTime_or_None(s): def DateTime_or_None(s):
try: return DateTime(s) try: return DateTime('%s UTC' % s)
except: return None except: return None
def int_or_long(s): def int_or_long(s):
......
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