Skip to content

Fix timezone issue for ingestion - #647

Open
FlorianBracq wants to merge 1 commit into
Azure:masterfrom
FlorianBracq:issue/fix-timezone-aware-datetimes
Open

Fix timezone issue for ingestion#647
FlorianBracq wants to merge 1 commit into
Azure:masterfrom
FlorianBracq:issue/fix-timezone-aware-datetimes

Conversation

@FlorianBracq

@FlorianBracq FlorianBracq commented Aug 20, 2026

Copy link
Copy Markdown

When using pyhon >= 3.12, DeprecationWarning are visible with messages such as:

datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
self._ingest_client_resources_last_update = datetime.utcnow()

Fixed

Replace datetime.utcnow() with datetime.now(tz=dt.timezone.utc)

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