这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@fajarnugraha-official
Copy link

This is scheduled to be removed in a future Python version. Replace it with the recommended one: datetime.datetime.now(datetime.UTC). Here are the details of the DeprecationWarning message output when running the termux-apt-repo script:

./termux-apt-repo:155: 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).
print("Date: " + datetime.datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S UTC'), file=release_file)

…ime.UTC).

This is scheduled to be removed in a future Python version.
Replace it with the recommended one: datetime.datetime.now(datetime.UTC).
Here are the details of the DeprecationWarning message output when running the termux-apt-repo script:

./termux-apt-repo:155: 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).
  print("Date: " + datetime.datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S UTC'), file=release_file)
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.

1 participant