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

UTCNow: Deprecation issue in baseplate-shell #893

Closed
salomon-smekecohen opened this issue Apr 24, 2024 · 0 comments · Fixed by #895
Closed

UTCNow: Deprecation issue in baseplate-shell #893

salomon-smekecohen opened this issue Apr 24, 2024 · 0 comments · Fixed by #895
Labels
good starter A good place to start devving on baseplate.py

Comments

@salomon-smekecohen
Copy link
Contributor

In python3.12 utcnow has become deprecated. This is referenced in the baseplate-shell script here. Which causes a lot of deprecation log lines while in a shell. See screenshot.

s/utcnow/now(utc) should do it. .replace(tzinfo=None) if you want 100% equivalent code, but you shouldnt.

Screenshot 2024-04-24 at 11 06 25 AM
@salomon-smekecohen salomon-smekecohen added the good starter A good place to start devving on baseplate.py label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good starter A good place to start devving on baseplate.py
Development

Successfully merging a pull request may close this issue.

1 participant