Use locale-aware date/time formatting throughout UI#48
Merged
erikdarlingdata merged 2 commits intodevfrom Feb 15, 2026
Merged
Conversation
Replace hardcoded US-style date formats (MM/dd, MMM d, h:mm tt) with the "g" general format specifier which respects the user's system locale. Dashboard: - ServerConnectionStatus: "Checked" and "Online since" timestamps - ManageServersWindow: Last Connected column - CollectorScheduleWindow: Last Run and Next Run columns Lite: - ServerConnectionStatus: same "Checked" and "Online since" timestamps - CollectorHealthRow/CollectionLogRow: all formatted timestamp properties Does not change the time range picker (AM/PM hour list) — that needs a separate design discussion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change hour picker from "12 AM", "1 AM", ... "11 PM" to "00:00", "01:00", ... "23:00". Consistent with chart axis labels, SQL Server log conventions, and international users. Parse logic is index-based (SelectedIndex 0-23) so no functional change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Partial fix for #41 — Replaces hardcoded US-style date formats with locale-aware
"g"(general date/time) format specifier across both Dashboard and Lite.Changes
Dashboard:
ServerConnectionStatus.cs— "Checked" and "Online since" sidebar timestamps (the"MMM d, h:mm tt"that showed asfeb. 13, 12:23 a.m.for Norwegian users)ManageServersWindow.xaml— Last Connected column (MM/dd/yyyy HH:mm)CollectorScheduleWindow.xaml— Last Run / Next Run columns (MM/dd HH:mm)Lite:
ServerConnectionStatus.cs— same sidebar timestampsLocalDataService.CollectionHealth.cs— all Collection Health formatted timestamps (MM/dd HH:mm:ss)Not included
The time range picker (AM/PM hour list) needs a separate design discussion — it generates a hardcoded list of "12 AM", "1 AM", etc. that would need to be rethought for 24-hour locales.
Test plan
dotnet build Dashboard -c Debug— builds cleandotnet build Lite -c Debug— builds clean15.02.2026 18:42for Norwegian)🤖 Generated with Claude Code