diff --git a/evennia/contrib/extended_room.py b/evennia/contrib/extended_room.py index e5a8fdd934..6bbd79548b 100644 --- a/evennia/contrib/extended_room.py +++ b/evennia/contrib/extended_room.py @@ -133,6 +133,7 @@ class ExtendedRoom(DefaultRoom): # get the current time as parts of year and parts of day. # we assume a standard calendar here and use 24h format. timestamp = gametime.gametime(absolute=True) + # note that fromtimestamp includes the effects of server time zone! datestamp = datetime.datetime.fromtimestamp(timestamp) season = float(datestamp.month) / MONTHS_PER_YEAR timeslot = float(datestamp.hour) / HOURS_PER_DAY