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 is not respected #22900

Open
4 tasks done
szczukot opened this issue Nov 20, 2024 · 10 comments · May be fixed by #24935
Open
4 tasks done

Date format is not respected #22900

szczukot opened this issue Nov 20, 2024 · 10 comments · May be fixed by #24935

Comments

@szczukot
Copy link

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I choose date format:
image

but I see everywhere date notation in the United States format

image

image

image

Describe the behavior you expected

Displaying the date in the selected format

Steps to reproduce the issue

everywhere

What version of Home Assistant Core has the issue?

2024.11.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Google Chrome Version 131.0.6778.70 (Official Build) (64-bit)

Which operating system are you using to run this browser?

Windows 11

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

@karwosts
Copy link
Contributor

Seems that the date format is only used in places with fully numeric dates, like 12/31/24.

Dates which are formatted in longer style formats are not affected by date format option.

@szczukot
Copy link
Author

Changing the language does not change this format either (tested English GB and Polish)

Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Feb 20, 2025
@Stolowka
Copy link

still relevant

@github-actions github-actions bot removed the stale label Feb 20, 2025
@RobSmyth
Copy link

RobSmyth commented Mar 8, 2025

To expand on the reported issue (let me know if I ought to raise a separate issue), HASS has location and language settings but does not seem to have any locale setting (e.g: en-AU, es-ES, or es-CL) and selecting "English GB" the dev tools | statistics | fix issue dialog shows gives US date format:

Image

Here is is using the US date format (mm/dd/yyyy). In the end I found that I must set my user date format explicitly.

Improvements:

  • A locale configuration (best options)
  • Make system default the much more common dd/mm/yyyy format instead of the US format
  • Add system level default date format
  • Fix the default format for en-GB to be dd/mm/yyyy

@lukaas33
Copy link

Hi, we are a group of computer science students that are planning to fix this issue as part of a course.
Perhaps this issue can be assigned to me?

@karwosts
Copy link
Contributor

We don't typically assign issues to new contributors. Just feel free to put up a pull request when it's ready.

@bramkragten
Copy link
Member

Changing the language does not change this format either (tested English GB and Polish)

I don't think that is true, using English GB + the setting use language settings for date format you would get d-m-y.

@bramkragten
Copy link
Member

bramkragten commented Apr 7, 2025

@RobSmyth it is just using d-m-y when selecting en-gb here, can you check if your issue still exists?

Image

@RobSmyth
Copy link

RobSmyth commented Apr 7, 2025

@RobSmyth it is just using d-m-y when selecting en-gb here, can you check if your issue still exists?

Image

Hi @bramkragten ,

Yes, using en-gb now does give GB date format.

Thank you

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.

6 participants