Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify datetime.tzinfo behaviour #22

Merged
merged 6 commits into from Feb 21, 2022
Merged

Unify datetime.tzinfo behaviour #22

merged 6 commits into from Feb 21, 2022

Conversation

Pliner
Copy link
Contributor

@Pliner Pliner commented Feb 21, 2022

PR aims to unify work with datetime:

  1. If a timezone is not specified or specified as UTC(00:00) we should deserialize it as a datetime with UTC time zone.
  2. If a timezone is not specified or specified as UTC(00:00) we should serialize it as a datetime with UTC time zone.
  3. If a timezone is specified and it is not UTC(00:00) we should convert the timezone to UTC on deserialize.

@Pliner Pliner merged commit 57deca2 into main Feb 21, 2022
@Pliner Pliner deleted the fix-datetime-field branch February 21, 2022 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants