frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Date format is not respected

Open szczukot opened this issue 1 year ago • 15 comments

Checklist

  • [X] I have updated to the latest available Home Assistant version.
  • [X] I have cleared the cache of my browser.
  • [X] I have tried a different browser to see if it is related to my browser.
  • [X] 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

szczukot avatar Nov 20 '24 10:11 szczukot

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.

karwosts avatar Nov 22 '24 05:11 karwosts

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

szczukot avatar Nov 22 '24 07:11 szczukot

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[bot] avatar Feb 20 '25 08:02 github-actions[bot]

still relevant

Stolowka avatar Feb 20 '25 09:02 Stolowka

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

RobSmyth avatar Mar 08 '25 01:03 RobSmyth

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?

lukaas33 avatar Mar 25 '25 14:03 lukaas33

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

karwosts avatar Mar 25 '25 14:03 karwosts

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 avatar Apr 07 '25 11:04 bramkragten

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

Image

bramkragten avatar Apr 07 '25 11:04 bramkragten

@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

RobSmyth avatar Apr 07 '25 23:04 RobSmyth

I still would like the option to see YYYY-MM-DD instead of YYYY/M/D... At least an additional option for it.

pstray avatar Jun 23 '25 13:06 pstray

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[bot] avatar Sep 21 '25 14:09 github-actions[bot]

still relevant

szczukot avatar Sep 21 '25 14:09 szczukot

Local date format is still not respected.

sdgsgdf5 avatar Dec 05 '25 22:12 sdgsgdf5

This is still relevant when adding an event to a calendar. The event dialog box displays the date as mm/dd/yyyy irrespective of Country being set to Ireland under the General settings.

kenguest avatar Dec 11 '25 15:12 kenguest