Skip to content

fix: refactor datetime to remove deprecation warnings#1758

Open
emmanuel-ferdman wants to merge 2 commits into
Data-Centric-AI-Community:developfrom
emmanuel-ferdman:develop
Open

fix: refactor datetime to remove deprecation warnings#1758
emmanuel-ferdman wants to merge 2 commits into
Data-Centric-AI-Community:developfrom
emmanuel-ferdman:develop

Conversation

@emmanuel-ferdman

Copy link
Copy Markdown
Contributor

PR Summary

This small PR fixes the datetime deprecation warnings which you can find in the CI logs:

DeprecationWarning: 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).
    date_start = datetime.utcnow()

@emmanuel-ferdman

Copy link
Copy Markdown
Contributor Author

Hi @fabclmnt, can you please review this small PR when you get the chance? thanks 🙌

@fabclmnt

Copy link
Copy Markdown
Collaborator

@emmanuel-ferdman it seems that the changes are breaking the tests.

Can you please revise the code?

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
@emmanuel-ferdman

Copy link
Copy Markdown
Contributor Author

@fabclmnt rebased again :)

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.

2 participants