fixed invalid datetime serialization, related to araqne/issue#25