mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-10-05 18:47:27 +03:00
Replace usage of deprecated utcnow function
This commit is contained in:
parent
20c919e16e
commit
cf4630350f
@ -333,7 +333,7 @@ def patch(self, url: str, fail_msg: str, **data: str) -> None:
|
||||
|
||||
def update_nightly_description(self, release_id: int) -> None:
|
||||
url = f'{self.url_base}/{release_id}'
|
||||
now = str(datetime.datetime.utcnow()).split('.')[0] + ' UTC'
|
||||
now = str(datetime.datetime.now(datetime.timezone.utc)).split('.')[0] + ' UTC'
|
||||
commit = subprocess.check_output(['git', 'rev-parse', '--verify', '--end-of-options', 'master^{commit}']).decode('utf-8').strip()
|
||||
self.patch(
|
||||
url, 'Failed to update nightly release description',
|
||||
|
Loading…
Reference in New Issue
Block a user