-
Notifications
You must be signed in to change notification settings - Fork 456
Proposal: Always convert DateTime to UTC during serialization #1371
Copy link
Copy link
Closed
Labels
Next breaking change releaseFix that will be a breaking change – good for next breaking change releaseFix that will be a breaking change – good for next breaking change releaseType: enhancement
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Next breaking change releaseFix that will be a breaking change – good for next breaking change releaseFix that will be a breaking change – good for next breaking change releaseType: enhancement