Skip to content

Conversation

@hf-kklein
Copy link
Contributor

everbody hates naive datetimes

@hf-kklein hf-kklein changed the title chore: use AwareDatetime instead of datetime chore: use AwareDatetime instead of datetime (prevents naive datetimes) Feb 15, 2024
@hf-kklein hf-kklein marked this pull request as ready for review February 15, 2024 12:45
Copy link
Collaborator

@hf-krechan hf-krechan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AwareDatetime
like datetime, with the constraint that the value must have timezone info

https://docs.pydantic.dev/2.1/usage/types/datetime/

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.

3 participants