Skip to content

Conversation

@Hukeqing
Copy link

@Hukeqing Hukeqing commented Dec 4, 2023

Because datetime.datetime.utcnow() was marked deprecated in 3.12, but datetime.UTC was only supported from 3.11. In order to ensure usability, I used sys.version_info to check the current version to apply to lower versions of python. I tested in python2.7, python 3.8, python3.11 and python3.12 respectively, and they were all in line with expectations.

@noonosh
Copy link

noonosh commented Apr 2, 2024

@sivel, Please merge this!

@ckujau
Copy link

ckujau commented Sep 20, 2024

duplicate of #801 (and would be included in #799 also)?

@SantiiRepair
Copy link

duplicate of #801 (and would be included in #799 also)?

This pull request is better

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.

5 participants