diff --git a/publish.py b/publish.py index 9678570c8..eabf4a07e 100755 --- a/publish.py +++ b/publish.py @@ -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',