Fix DateTime serialization