[BUG] TIME_ZONE
/USE_TZ
settings don't appear to work correctly
#3522
Labels
bug
An actual error or unwanted behavior.
needs-triage
Yet to be looked at and verified as an a real issue/feature that could be worked on
Describe the bug
When setting
TIME_ZONE
to a specific timezone andUSE_TZ
to False, datetimes created are the correct timezone, and correctly stored as naive datetimes.However, when
USE_TZ
is True, times are all recorded in UTC and displayed as the UTC clock time regardless of theTIME_ZONE
setting.To Reproduce
Steps to reproduce the behavior:
TIME_ZONE="EST"
andUSE_TZ=False
, then page yourself.date_created
property of the most recentMsg
object; it should be the correct current time in EST.USE_TZ
to True and page yourself again.date_created
property of the most recentMsg
object; it will be the current time in UTC, with the UTC timestamp.page
output for recent pages: it displays that most recent page as the UTC time, not the settings-defined timezone.Expected behavior
The second situation should, I believe, be creating a datetime of e.g.
2024-04-28 00:15:21.894696-05:00
- the current time in EST, with the EST timezone offset - rather than the current outcome of2024-04-28 05:15:21.894696+00:00
- the same time, but in UTC with the UTC offset.The strangest part of it all is that the first situation is correctly altering the server's time to the specified timezone. My game's currently set timezone is not my current timezone and it is the correct offset from my computer's time.
Environment, Evennia version, OS etc
Evennia 3.2.0 (I realize this is outdated, didn't have a newer install handy to run)
Additional context
This issue appears to be preventing #3503 from being implemented correctly
The text was updated successfully, but these errors were encountered: