Proposal: Always convert DateTime to UTC during serialization #1371
Labels
Next breaking change release
Fix that will be a breaking change – good for next breaking change release
Type: enhancement
Since dates should pretty much always be stored in UTC would it be reasonable to automatically convert DateTime objects to UTC during serialization? Could this at least be an option in the generator? I know I could write my own DateTime converter but then I have to remember to use it every time I create a new DateTime field.
I see #811, but that was abandoned. I think making this a generator setting, maybe off by default to prevent issues with existing codebases, would be ideal.
The text was updated successfully, but these errors were encountered: