Skip to content

Fix invalid Logbook timestamps and show date/time in server timezone - #2

Merged
bnichols108 merged 1 commit into
mainfrom
fix-logbook-timestamps
Jul 4, 2026
Merged

Fix invalid Logbook timestamps and show date/time in server timezone#2
bnichols108 merged 1 commit into
mainfrom
fix-logbook-timestamps

Conversation

@bnichols108

Copy link
Copy Markdown
Owner

Summary

  • Fixes "Invalid Date" in the Logbook: the API returns timezone-qualified ISO timestamps (e.g. ...+00:00), but the frontend was appending a Z suffix unconditionally, producing an unparseable string like ...+00:00Z.
  • Each entry now shows both date and time, fixed to America/New_York with an explicit zone abbreviation (e.g. 07/03/26, 06:09 PM EDT), so everyone viewing the Logbook together sees a consistent time for the same event regardless of their own browser's timezone.

Test plan

  • Verified via node on the server that the fixed parsing/formatting logic produces correct output against real /api/logbook timestamps
  • Deployed live to 192.168.68.2:8080 and confirmed the Logbook page renders correctly

Timestamps were unparseable because the code appended "Z" to
already-offset-qualified ISO strings from the API (e.g. "...+00:00Z").
Also fixes the displayed time to a fixed America/New_York zone with an
explicit abbreviation, so everyone viewing the Logbook sees the same
time for the same event regardless of their own browser's timezone.
@bnichols108
bnichols108 merged commit c0f56c8 into main Jul 4, 2026
1 check 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.

1 participant