Skip to content

Use locale-aware date/time formatting throughout UI#48

Merged
erikdarlingdata merged 2 commits intodevfrom
feature/41-locale-aware-datetime
Feb 15, 2026
Merged

Use locale-aware date/time formatting throughout UI#48
erikdarlingdata merged 2 commits intodevfrom
feature/41-locale-aware-datetime

Conversation

@erikdarlingdata
Copy link
Owner

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 as feb. 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 timestamps
  • LocalDataService.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 clean
  • dotnet build Lite -c Debug — builds clean
  • Launch Dashboard — verify sidebar shows locale-appropriate timestamps
  • Launch Lite — verify Collection Health timestamps respect locale
  • On a non-US locale: confirm dates use local format (e.g. 15.02.2026 18:42 for Norwegian)

🤖 Generated with Claude Code

erikdarlingdata and others added 2 commits February 15, 2026 16:06
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>
@erikdarlingdata erikdarlingdata merged commit f5caef2 into dev Feb 15, 2026
1 check passed
@erikdarlingdata erikdarlingdata deleted the feature/41-locale-aware-datetime branch February 20, 2026 13:20
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