Skip to content

Fix deprecation warning for datetime.utcnow()#28

Open
mks-h wants to merge 1 commit intotermux:masterfrom
mks-h:fix-utc-warning
Open

Fix deprecation warning for datetime.utcnow()#28
mks-h wants to merge 1 commit intotermux:masterfrom
mks-h:fix-utc-warning

Conversation

@mks-h
Copy link
Copy Markdown

@mks-h mks-h commented Feb 5, 2026

Fixes the following warning:

/usr/local/bin/termux-apt-repo:137: 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