Skip to content

AttributeError: module 'datetime' has no attribute 'UTC' #4

@ua6hjq

Description

@ua6hjq

I see it after start YSFReflector

pyysf3

ua6hjq@ua6hjq:/opt/pYSFReflector3$ sudo -u mmdvm ./YSFReflector pysfreflector.ini

Starting pYSFReflector-20240210
Traceback (most recent call last):
File "./YSFReflector", line 1523, in
RunServer(config)
File "./YSFReflector", line 933, in RunServer
printlog(4, 'Starting pYSFReflector-' + version)
File "./YSFReflector", line 1436, in printlog
str_log = check_string('M: ' + str(datetime.datetime.now(datetime.UTC).strftime('%Y-%m-%d %H:%M:%S.%f'))[:-3] + ' ' + mess)
AttributeError: module 'datetime' has no attribute 'UTC'

how can i fix this?
I use Debian 10 (buster)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions