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

DeprecationWarning: datetime.datetime.utcfromtimestamp() #661

Closed
derks opened this issue Dec 26, 2023 · 0 comments
Closed

DeprecationWarning: datetime.datetime.utcfromtimestamp() #661

derks opened this issue Dec 26, 2023 · 0 comments

Comments

@derks
Copy link
Member

derks commented Dec 26, 2023

Cement Issue Reporting and Feature Requests

Please include any of the following in bug/issue reports where it is relevant:

System Information

  • Cement Version: 3.0.9 (main)
  • Python Version: 3.12.1
  • Operating System and Version: Linux-6.4.16-linuxkit-x86_64-with

Steps to Reproduce (Bugs Only)

export PYTHONWARNINGS=once

cement generate project -D ./myapp

cd ./myapp

python setup.py develop

myapp --version

The output is:

/src/cement/utils/version.py:102: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  timestamp = datetime.datetime.utcfromtimestamp(int(timestamp))
/src/cement/core/foundation.py:762: DeprecationWarning: App.Meta.framework_logging will be changed or removed in Cement v3.2.0. See: https://docs.builtoncement.com/release-information/deprecations#3.0.8-2
  deprecate('3.0.8-2')
MyApp Does Amazing Things! 0.0.1.dev20231226044342
Cement Framework 3.0.9
Python 3.12.1
Platform Linux-6.4.16-linuxkit-x86_64-with
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant