Commit 7845810a authored by Timothy Stack's avatar Timothy Stack
Browse files

Dates retrieved from SQL aren't strings anymore, need to convert

before turning them into xmlrpc dates
parent 7e731fba
......@@ -291,7 +291,7 @@ class emulab:
tmp["subject"] = res[0]
tmp["author"] = res[1]
tmp["date"] = xmlrpclib.DateTime(
time.strptime(res[2], "%Y-%m-%d %H:%M:%S"))
time.strptime(str(res[2]), "%Y-%m-%d %H:%M:%S"))
tmp["msgid"] = res[3]
result.append(tmp)
pass
......
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