mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 07:27:17 +02:00
Fix login/out announcement bug based on server time settings
This commit is contained in:
parent
bec7151b9e
commit
cc9ec55fef
1 changed files with 4 additions and 1 deletions
|
|
@ -1262,7 +1262,10 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
|||
]
|
||||
except Exception:
|
||||
logger.log_trace()
|
||||
now = timezone.localtime()
|
||||
if settings.USE_TZ:
|
||||
now = timezone.localtime()
|
||||
else:
|
||||
now = timezone.now()
|
||||
now = "%02i-%02i-%02i(%02i:%02i)" % (now.year, now.month, now.day, now.hour, now.minute)
|
||||
if _MUDINFO_CHANNEL:
|
||||
_MUDINFO_CHANNEL.tempmsg(f"[{_MUDINFO_CHANNEL.key}, {now}]: {message}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue