Skip to content

fix: refactor datetime to remove deprecation warnings#1758

Open
emmanuel-ferdman wants to merge 4 commits intoData-Centric-AI-Community:developfrom
emmanuel-ferdman:develop
Open

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

Conversation

@emmanuel-ferdman
Copy link
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()

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

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

@fabclmnt
Copy link
Collaborator

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

Can you please revise the code?

@emmanuel-ferdman
Copy link
Contributor Author

@fabclmnt CI is stable now - how can we progress from here?

@emmanuel-ferdman
Copy link
Contributor Author

Hi @fabclmnt, sorry again for bumping but could we please finish with this small PR?

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