Skip to content

Change "Enter Local Time" to print timezone explicitly (if possible) instead of "Local"; add missing polar alignment test far from pole#525

Merged
brickbots merged 8 commits into
brickbots:mainfrom
alexis-cousein:fix_state_dt_tz
Jul 9, 2026
Merged

Change "Enter Local Time" to print timezone explicitly (if possible) instead of "Local"; add missing polar alignment test far from pole#525
brickbots merged 8 commits into
brickbots:mainfrom
alexis-cousein:fix_state_dt_tz

Conversation

@alexis-cousein

Copy link
Copy Markdown
Contributor

A recent merge was, alas, missing two unpushed changes that were on my local machine. Self explanatory, we want to explicitly display "Enter Europe/Brussels Time" rather than "Enter Local Time" to confirm that the timezone is what the user expects in the time entry screen.

And another test for polar alignment was very near the pole, and as such may miss some Alt-Az decomposition errors that would have been more blatant with a mount axis pointing really far from the pole. I had a second test but it never got pushed to github when the tests were merged.

alexis-cousein and others added 6 commits July 8, 2026 17:22
…bots#508

ADR-0018 + Positioning CONTEXT.md glossary: shared_state civil datetime is
stored timezone-aware in UTC, normalised at the set_datetime() boundary, and
read via utc_datetime()/local_datetime(); distinguish civil datetime (the
astronomical epoch) from measurement epoch (time.time() fix-age). Captures the
GPS LST->LKT rename and the no-naive-local-persisted-data finding.
…orce DTZ

Add PiFinder/timez.py as the single sanctioned source of datetimes
(utc_now / local_now / utc_from_timestamp / parse / naive / utc) and enable
ruff's DTZ (flake8-datetimez) family repo-wide, exempting only timez.py. Every
bare datetime.now() / datetime(...) / strptime() / fromtimestamp() now routes
through timez, so 'local or UTC?' is explicit at the call site and a naive value
cannot silently reach the astronomy/ephemeris path. Also fixes a latent relabel
bug in the comets.py freshness check (a file mtime read naive-local and stamped
UTC -> now the true UTC instant via timez.utc_from_timestamp). See ADR-0018.
@brickbots brickbots merged commit 5dc384f into brickbots:main Jul 9, 2026
5 checks passed
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.

3 participants