Skip to content

feat: use 12h/24h & datetime settings from locale, allow a custom format for datetime#1347

Open
ildar170975 wants to merge 85 commits intokalkih:devfrom
ildar170975:hour24-from-locale
Open

feat: use 12h/24h & datetime settings from locale, allow a custom format for datetime#1347
ildar170975 wants to merge 85 commits intokalkih:devfrom
ildar170975:hour24-from-locale

Conversation

@ildar170975
Copy link
Copy Markdown
Collaborator

@ildar170975 ildar170975 commented Mar 7, 2026

  1. If hour24 is not set by a user - it is automatically updated from locale.
    Implements [FR] Use user profile timeformat (12h,24h) #1009
    (instead of wrongly created feat: update hour24 from locale #1242)

  2. By default, global HA Frontend settings for formatting datetime values are used.
    A new datetime_format option is added to customize a presentation.
    The legacy "day weekday" format can be also used.
    Closes Date Format on Extrema #1102.

Tests for the new formatDateTime() function are added. By default the tests are disabled - check for details in the added tests' file.

@ildar170975 ildar170975 marked this pull request as ready for review March 9, 2026 05:52
@ildar170975 ildar170975 marked this pull request as draft March 14, 2026 00:42
@ildar170975 ildar170975 linked an issue Mar 17, 2026 that may be closed by this pull request
@ildar170975 ildar170975 changed the title feat: update hour24 from locale feat: use 12h/24h & datetime settings from locale, allow a custom format for datetime Mar 17, 2026
@ildar170975 ildar170975 marked this pull request as ready for review March 17, 2026 04:00
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.

Date Format on Extrema

1 participant