dlna-python
dlna-python copied to clipboard
报错AttributeError: module 'datetime' has no attribute 'UTC'
报错 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)
我运行没有报错,你的python版本是多少
Python 3.8.10
修改了, 你可以更新再试试