From 29b381fbe67452a51675fbf1bf1a42c67e37b27c Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 1 Sep 2020 22:36:54 +0200 Subject: [PATCH] Use localtime for MudInfo channel output. Resolves #2182. --- evennia/accounts/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/accounts/accounts.py b/evennia/accounts/accounts.py index f9c97a90f7..fa76774e8e 100644 --- a/evennia/accounts/accounts.py +++ b/evennia/accounts/accounts.py @@ -1262,7 +1262,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase): ] except Exception: logger.log_trace() - now = timezone.now() + now = timezone.localtime() 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}")