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

update-zonefile.py:70: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version #43

Open
CRCinAU opened this issue Oct 23, 2024 · 0 comments

Comments

@CRCinAU
Copy link

CRCinAU commented Oct 23, 2024

The following warning is printed when running update-zonefile.py on Fedora 40.

update-zonefile.py:70: 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).
  last_modified = datetime.utcfromtimestamp(cache.stat().st_mtime)

Python environment installed:

rpm -qa | grep python | sort
python3-3.12.7-1.fc40.x86_64
python3-charset-normalizer-3.3.2-3.fc40.noarch
python3-dateutil-2.8.2-13.fc40.noarch
python3-dbus-1.3.2-6.fc40.x86_64
python3-decorator-5.1.1-9.fc40.noarch
python3-distro-1.9.0-3.fc40.noarch
python3-dnf-4.21.1-1.fc40.noarch
python3-dnf-plugins-core-4.9.0-1.fc40.noarch
python3-dns-2.6.1-1.fc40.noarch
python3-hawkey-0.73.3-1.fc40.x86_64
python3-idna-3.7-1.fc40.noarch
python3-libcomps-0.1.20-5.fc40.x86_64
python3-libdnf-0.73.3-1.fc40.x86_64
python3-libs-3.12.7-1.fc40.x86_64
python3-pysocks-1.7.1-22.fc40.noarch
python3-pyyaml-6.0.1-14.fc40.x86_64
python3-requests-2.31.0-3.fc40.noarch
python3-rpm-4.19.1.1-1.fc40.x86_64
python3-six-1.16.0-14.fc40.noarch
python3-systemd-235-9.fc40.x86_64
python3-unbound-1.21.1-3.fc40.x86_64
python3-urllib3-1.26.20-1.fc40.noarch
python3-urllib3+socks-1.26.20-1.fc40.noarch
python3-validators-0.20.0-6.fc40.noarch
python-pip-wheel-23.3.2-2.fc40.noarch
python-unversioned-command-3.12.7-1.fc40.noarch
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

No branches or pull requests

1 participant