Skip to content

fix: sync camera clock to local wall-clock time#413

Open
kamcnally wants to merge 1 commit into
QuantumEntangledAndy:masterfrom
kamcnally:fix/camera-local-timezone-qea
Open

fix: sync camera clock to local wall-clock time#413
kamcnally wants to merge 1 commit into
QuantumEntangledAndy:masterfrom
kamcnally:fix/camera-local-timezone-qea

Conversation

@kamcnally

Copy link
Copy Markdown

The Baichuan protocol has no timezone field, cameras store whatever time they receive and display it directly. Local wall-clock time is the correct value to send, matching what manufacturer apps do. Sending UTC caused the camera display to show the wrong time for anyone outside UTC.

Uses the system TZ (via TZ env var or /etc/localtime, DST-aware). Falls back to UTC if the local offset cannot be determined. Users who want UTC can set TZ=UTC on the host.

Fixes #361

The Baichuan protocol has no timezone field, cameras store whatever time they receive and display it directly. Local wall-clock time is the correct value to send, matching what manufacturer apps do. Sending UTC caused the camera display to show the wrong time for anyone outside UTC.

Uses the system TZ (via TZ env var or /etc/localtime, DST-aware). Falls back to UTC if the local offset cannot be determined. Users who want UTC
can set TZ=UTC on the host.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

Camera set to the wrong time, off by -2 hours

1 participant