Roguelike-Celebration / azure-mud

MIT License
191 stars 32 forks source link

Happening Now might not properly take timezones into account #892

Open MoyTW opened 6 days ago

MoyTW commented 6 days ago

Report from bubez at 3:01 Pacific:

bubez: as for the Happening Now, it's displaying to me:
bubez: Happening Now
bubez: From The Schedule
bubez: Doors Close
bubez: Other Live Activities
bubez: Remember, you can type /mod to contact the mods.
bubez: so, it's not working as intended?
bubez: i'm on the cest timezone, that might be the reason

On my screen it was:

Happening Now
From The Schedule
Social Time
Discuss Adrian: Probably Impossible: NecroDancer's network code in Whip Show
Discuss Loren Schmidt: Inverse Terrain Solver in Jousting Arena
Discuss Pandamander: "Out of Book": The Psychology of Why Roguelikes Keep Us Playing in Goblin Singers
Chat!
Explore the space!
Hunt for secrets!
Just remember to beware the grues.
Other Live Activities
Remember, you can type /mod to contact the mods.
MoyTW commented 6 days ago

(yes I am in Pacific)

lazerwalker commented 6 days ago

This is confusing to me.

https://github.com/Roguelike-Celebration/azure-mud/blob/main/src/components/HappeningNowView.tsx#L15-L17 should be comparing the current time (a Date object that should be time-zone aware) to a bunch of generated Date objects that are defined based on UTC -7 (Pacific time): https://github.com/Roguelike-Celebration/azure-mud/blob/main/src/components/ScheduleView.tsx#L25-L34

No idea why this is failing.

bubez commented 6 days ago

It is working now, since at least 2:50 am CEST:

Happening Now
From The Schedule
Social Time
Discuss Dan Norder: Chase: The BASIC Language Proto-Roguelike in Jousting Arena
Discuss John Bond: Doors? How Roguelike games take you places in Goblin Singers
Chat!
Explore the space!
Hunt for secrets!
Just remember to beware the grues.
Other Live Activities
Remember, you can type /mod to contact the mods.

3:37 am CEST:

Happening Now
From The Schedule
Unconferencing
unknown room
Other Live Activities
Unconference: What's been happening this year? in Unconferencing: the Archery Range.
Unconference: Post-Apocalyptic Settings in Unconferencing: Weapons Training Field.
Unconference: let's all just draw lil guys in Unconferencing: Docks.
Unconference: themes of bodily autonomy & physical transformation in roguelikes & other games in Unconferencing: Wood Shop.
Remember, you can type /mod to contact the mods.

It wasn't working after the last page reload to update the space, as far as I can tell. After I clicked the button by mistake some time later, I noticed it started working. I did nothing. Using the latest Edge with uBlock Origin. I reloaded many times, still working.

Possibly related: I don't have any 2024 talk badges although I was in the theater during all of them (if the unlock is based on the time; I can open another issue if not).