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 zone #26

Open
ronniebee opened this issue Feb 16, 2020 · 4 comments
Open

time zone #26

ronniebee opened this issue Feb 16, 2020 · 4 comments

Comments

@ronniebee
Copy link

ronniebee commented Feb 16, 2020

Great card! Many thanks!! I have a question, which timezone is being used? I use GMT+1 (local time) but the time being displayed GMT+0:00 (so one hour too early). I changed my ubuntu TZ into:

image

But still no result.. What to do?

@hulkhaugen
Copy link

hulkhaugen commented Apr 13, 2020

First of all, thanks for this awesome little mod, it's great. I'm also struggle with time zone and formatting. What i'm trying to achieve is using the next_sunset or next_sunrise attributes display, depending on which one comes first, for instance "Sunset at 20:00" or "Sunrise at 06:00". I've not been able to combine if/else-dependent text with attribute data. And also formatting, i'd prefer a short readable "20:00" over "2020-04-13 18:00:00+00:00". This might be me not understanding how to apply the right properties, but this is where i'm at atm. What i've got so far, only full date/time without text:

    secondary_info: >-
      [[ if({entity}.attributes.next_rising > {entity}.attributes.next_setting,
      sun.sun.attributes.next_rising, sun.sun.attributes.next_setting ) ]]

@gerliczky
Copy link

It would be really nice to be able to format date/time.

@JvdMaat
Copy link

JvdMaat commented Oct 5, 2023

Came here looking for the answer to this exact same question. It's been three years. Did any of you figure it out?

@ildar170975
Copy link

Templating is done by jinja and core HA extensions.
Address all your questions to jinja and HA developers.

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

5 participants