Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Replace hardcoded US date format (MM/DD/YYYY) with toLocaleDateString() to respect the user's regional settings.

Changes

  • Renamed formatUSDate β†’ formatLocalDate
  • Uses toLocaleDateString(undefined, {...}) with undefined locale to automatically use the user's system locale
  • Maintains the same date components (year, month, day) but adapts ordering and separators to regional conventions

Examples:

  • US: 12/05/2025
  • UK/EU: 05/12/2025
  • Germany: 05.12.2025
  • Japan: 2025/12/05

Generated with mux

Replace hardcoded US date format (MM/DD/YYYY) with toLocaleDateString()
to respect the user's regional settings. The formatUSDate function now
uses formatLocalDate which automatically adapts to the user's locale.

_Generated with `mux`_
@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 5, 2025
Merged via the queue into main with commit f14c08d Dec 5, 2025
17 checks passed
@ibetitsmike ibetitsmike deleted the regional-build-date-adjustment branch December 5, 2025 18:59
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