Commit 208accbd authored by Romain Courteaud's avatar Romain Courteaud Committed by Rafael Monnerat

Serialize datetime to transmit it.

Thanks to Tristan Cavelier
parent 951c503f
......@@ -497,8 +497,9 @@ elif (mode == \'root\') or (mode == \'traverse\'):\n
# traversed_document.log(property_name)\n
property_value = traversed_document.getProperty(property_name, d=None)\n
if (property_value is not None):\n
if not same_type(property_value, DateTime()):\n
# XXX Serialize DateTime\n
if same_type(property_value, DateTime()):\n
# Serialize DateTime\n
property_value = rfc822()\n
result_dict[property_name] = property_value \n
\n
##############\n
......
14
\ No newline at end of file
15
\ No newline at end of file
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