Fixed datetime serialization trouble