Skip to content

Use user locale for date/time formatting (closes #459)#470

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/locale-date-format
Mar 8, 2026
Merged

Use user locale for date/time formatting (closes #459)#470
erikdarlingdata merged 1 commit intodevfrom
fix/locale-date-format

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • WPF bindings default to en-US culture, ignoring the user's system locale
  • One-line fix: FrameworkElement.LanguageProperty.OverrideMetadata at app startup to use CurrentCulture
  • All StringFormat bindings ({0:g}, etc.) now respect the user's locale — European users see dd/MM/yyyy and 24-hour time

Closes #459

Test plan

  • On a system with non-US locale, open Collector Schedules — Last Run/Next Run should use local date format
  • Verify numbers still format correctly (comma vs period decimal separator)

🤖 Generated with Claude Code



WPF bindings default to en-US culture, so {0:g} format strings always
showed American MM/dd/yyyy dates regardless of the user's system locale.
Override FrameworkElement.LanguageProperty at startup to use the current
thread culture. European users now see dd/MM/yyyy and 24-hour time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 2cb3aa6 into dev Mar 8, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/locale-date-format branch April 9, 2026 00:34
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