home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.06k stars 2.78k forks source link

Calendar shows wrong time format for lunar phases #15685

Closed timothybuchanan closed 1 year ago

timothybuchanan commented 1 year ago

Checklist

Describe the issue you are experiencing

I have HA time format preference set to 24-hour. All times in automations, cards or elsewhere are in 24-hour with one exception. I use the Google calendar integration. In Google calendar, I have 24-hour set and all times are displayed that way. This includes the phases of the moon. For example, the moon will be full at 0540 on the 7th of March. However, in the HA Calendar, both as a card in Overview and as a separate dashboard, the time is shown as 5:40am.

Describe the behavior you expected

The time should display in 24-hour format.

Steps to reproduce the issue

  1. Install the calendar integration.
  2. In Google, add the Moon Phases calendar.
  3. View the calendar in HA. ...

What version of Home Assistant Core has the issue?

2023.3.0

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Brave 1.48.171

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

google calendar

HA calendar

spacegaier commented 1 year ago

Unless I am interpreting the screenshots incorrectly, the "5:40am" is part of the textual description of the event and therefore not something that HA will interfere with by design.

You would need to look for a way inside Google to have its lunar calendar in 24-hours format so that the event descriptions match what you want to see.

timothybuchanan commented 1 year ago

The first screenshot is how it appears on google.com, on the calendar app on my tablet and on my phone. Google calendar is set to use 24 hour format and all events are displayed that way on all my devices except in HA. HA calendar displays events in 24 hour except the moon phases, which display in 12 hour. That's the second screenshot. HA calendar changes the lunar phase time from 24 to 12 hour. Google is already set to use 24 format and it does. It is the HA calendar that changes it to 12 hour and it does this only for the lunar phases.

github-actions[bot] commented 1 year ago

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.