mirror of
https://github.com/abh/ntppool.git
synced 2026-04-25 19:45:50 +03:00
[GH-ISSUE #216] Graphs with minutes use 12 hour format #356
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntppool#356
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MarcelWaldvogel on GitHub (Jan 31, 2022).
Original GitHub issue: https://github.com/abh/ntppool/issues/216
Originally assigned to: @abh, @Copilot on GitHub.
Expected behavior
All times on the graphs are given in 24 hour format, based on UTC.
Actual behavior
When minutes are displayed, the hours are shown in 12 hour format (without AM/PM). Everything else is correct.
How to reproduce
HHformat) correctly (24 hour format), but theHH:MMformatted times between that use 12-hour format, resulting in e.g. the sequence "8:45", "21", "9:15", ….I have not verified whether this also occurs in the production system and/or the individual host view. (The screenshot is from the "account" view in the test system.)
BTW: It would be a bonus for the sequence afterwards to not read "20:45", "21", "21:15", but "20:45", "21", "21:15" instead (notice the "21:00"), for consistency.
@abh commented on GitHub (Jun 4, 2025):
this would be somewhere in
docs/shared/static/js/graphs.jsordocs/shared/static/js/graphs.server.js.The graphs are built with (an older version of) D3.js and ... it's hard for me to work on. Maybe the LLM can help us?