Skip to content

Honour TZ for the daily scan + surface the server clock#19

Merged
StrandedTurtle merged 1 commit into
mainfrom
claude/youthful-pasteur-2f6s72
Jul 1, 2026
Merged

Honour TZ for the daily scan + surface the server clock#19
StrandedTurtle merged 1 commit into
mainfrom
claude/youthful-pasteur-2f6s72

Conversation

@StrandedTurtle

Copy link
Copy Markdown
Owner

The daily scan fires at its configured time in the container's local timezone, which is UTC by default — so a "09:00" scan ran at 09:00 UTC, an hour off for non-UTC users.

  • Pass TZ through docker-compose.yml (TZ=${TZ:-UTC}) and document it in .env.example / README. Node honours TZ, so "09:00" then fires at 09:00 local.
  • GET /api/status now returns the server's serverLocalTime + timeZone; Settings shows it next to Daily scan time with a hint to set TZ if it looks off.

Verified: booted with TZ=Europe/London/api/status reports timeZone: Europe/London, serverLocalTime: 08:50 (BST). Server tests green, client build clean.

🤖 Generated with Claude Code


Generated by Claude Code

The daily scan fires at its configured time in the container's local timezone,
which is UTC by default — so a '09:00' scan ran at 09:00 UTC (an hour off for
non-UTC users). Pass TZ through docker-compose.yml (TZ=${TZ:-UTC}) and document
it in .env.example/README. /api/status now also returns the server's current
local time + timezone, and Settings shows it next to 'Daily scan time' with a
hint to set TZ if it looks wrong.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Lj6nYJQDtLaZFvvEQJGM4
@StrandedTurtle StrandedTurtle merged commit 0c29d3d into main Jul 1, 2026
4 checks passed
@StrandedTurtle StrandedTurtle deleted the claude/youthful-pasteur-2f6s72 branch July 1, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant