Skip to content

Commit

Permalink
fix 3.12 utcnow depreciation
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Jan 8, 2024
1 parent 9f6dc09 commit d8be969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openant/fs/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def download_directory(self, callback=None):
data = self.download(0, callback)
return Directory.parse(data)

def set_time(self, time=datetime.datetime.utcnow()):
def set_time(self, time=datetime.datetime.now(datetime.timezone.utc)):
"""
:param time: datetime in UTC, or None to set to current time
"""
Expand Down

0 comments on commit d8be969

Please sign in to comment.