Honour TZ for the daily scan + surface the server clock#19
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
TZthroughdocker-compose.yml(TZ=${TZ:-UTC}) and document it in.env.example/ README. Node honoursTZ, so "09:00" then fires at 09:00 local.GET /api/statusnow returns the server'sserverLocalTime+timeZone; Settings shows it next to Daily scan time with a hint to setTZif it looks off.Verified: booted with
TZ=Europe/London→/api/statusreportstimeZone: Europe/London,serverLocalTime: 08:50(BST). Server tests green, client build clean.🤖 Generated with Claude Code
Generated by Claude Code