dlna-python icon indicating copy to clipboard operation
dlna-python copied to clipboard

报错AttributeError: module 'datetime' has no attribute 'UTC'

Open umena337 opened this issue 1 year ago • 3 comments

报错 date = datetime.datetime.now(datetime.UTC).strftime(GMT_FORMAT) AttributeError: module 'datetime' has no attribute 'UTC' main.py的第97行 date = datetime.datetime.now(datetime.UTC).strftime(GMT_FORMAT) date = datetime.datetime.now(datetime.timezone.utc).strftime(GMT_FORMAT)

umena337 avatar Nov 29 '24 05:11 umena337

我运行没有报错,你的python版本是多少

suconghou avatar Nov 29 '24 05:11 suconghou

Python 3.8.10

umena337 avatar Nov 29 '24 05:11 umena337

修改了, 你可以更新再试试

suconghou avatar Nov 29 '24 05:11 suconghou