Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date format in i18n configuration #972

Closed
olibrian opened this issue Jun 21, 2024 · 1 comment · Fixed by upptime/status-page#549
Closed

Date format in i18n configuration #972

olibrian opened this issue Jun 21, 2024 · 1 comment · Fixed by upptime/status-page#549

Comments

@olibrian
Copy link

The date format in the GUI should be displayed depending on the region/country. The DD/MM/YYYY format is currently used. Depending on the locale, a different format (e.g. DD.MM.YYYY) is expected. The desired format (locale) should be defined in the settings.

--

Unfortunately this is currently not supported, but I'd love to accept a PR to add this feature. Here's how I'll go about it:

  • Add a new key in the configuration for date/time format
  • Use this key to localize .toLocaleDateString() in upptime/status-page

Originally posted by @AnandChowdhary in #486 (comment)

@AnandChowdhary
Copy link
Member

Thank you!

@olibrian olibrian changed the title Date formats in i18n configuration Date format in i18n configuration Jun 22, 2024
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 a pull request may close this issue.

2 participants