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

Time Not Showing as Local Time - Seems to be UTC only in state #42

Open
Joshndroid opened this issue Feb 4, 2022 · 3 comments
Open

Comments

@Joshndroid
Copy link

I am assuming that this is probably going to be a config error on my part but I just can't seem to get this to work correctly as the state value.

I have the state setup such as this for time format - %a %B %d %I:%M%p
It then provides the nice output within the state - Sun March 13 05:05AM

^^^ how I have that set out there is exactly how I want it, just with the correct time. it should be 3:05pm or atleast 15:05

The problem however is that it is 10 hours off... my exact offset from UTC (being +1000)

The start time attribute is correct and shows the offset
start: 2022-03-13T15:05:00+10:00

So i know its pulled the data across.

I have checked the home assistant timezone which is set correctly for my locality for offset.
Is there a way to add the offset the state time?

Cheers for the awesome integration.

@jeroenvdd
Copy link

I seem to notice the same thing, the events are shown correctly as in 'next event is' but the hour mentioned is of by 1 hour for me

@jeroenvdd
Copy link

found a way to fix this but its the dumbest way ever, splitting out the string and doing +1...

@Joshndroid
Copy link
Author

so do you mean adding +1 to the end of the "%a %B %d %I:%M%p"

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

No branches or pull requests

2 participants