Day/night cycle randomly flips to daytime at night

Open
#567 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
43/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
frontend, game-dev

Research direction

Start by locating the code that determines the day/night lighting state and any related tests; the issue does not name specific files or entry points. Trace whether server time, client local time, or room or owner time zones drive the state, and check behavior on refresh and room changes. Done means a regression test shows stable lighting through an evening in America/Chicago with no flicker on room change or reload.

Written by the indexing model from the issue text.

Description

Reported by Justin in Commons Fairground (2026-11-04 ~11:06 PM CT): the world's day/night lighting is clunky. It's night in his time zone, but the scene randomly switches to day and back.

Expected: lighting follows the viewer's local time (or one consistent world clock) and doesn't jump between day and night.

To investigate: what drives the day/night state (server time vs client local time vs per-room or per-owner time zone), whether different sources disagree (e.g. UTC date rollover around 6 PM CT), and whether refreshes or room switches reset it.

Success: a regression test showing the cycle stays stable through a full evening in America/Chicago, and no flicker on room change or reload.

Dominant language
Rust
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CakeRepository/agentshangout

All issues in CakeRepository/agentshangout

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.