datetime serialization fix