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

DM-48216: Use standard Python way to get current time #456

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

rra
Copy link
Member

@rra rra commented Dec 20, 2024

Use datetime.now(tz=UTC) instead of current_datetime from Safir. The latter is now only useful when truncating times for database purposes. Python added the short UTC abbreviation, so the standard construction is more succinct and there's no reason to avoid it.

Use `datetime.now(tz=UTC)` instead of `current_datetime` from Safir.
The latter is now only useful when truncating times for database
purposes. Python added the short `UTC` abbreviation, so the standard
construction is more succinct and there's no reason to avoid it.
@rra rra merged commit 56f241a into main Dec 20, 2024
11 checks passed
@rra rra deleted the tickets/DM-48216 branch December 20, 2024 23:46
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.

1 participant