fufar / simple-clock-card

Simple clock card for Home assistant lovelace
49 stars 23 forks source link

How to show different time-zones #13

Closed trytogetme85 closed 3 years ago

trytogetme85 commented 3 years ago

Hi there, as my question is above... how do i Show a different time zone than mine?

fufar commented 3 years ago

This addon does not have this feature

kreene1987 commented 3 years ago

This could be done with an offset input config value in the card itself, I'm sure a PR to implement would be welcome @trytogetme85.

DutchJaFO commented 3 years ago

I like the simplicity of this card and I'm not sure if this would keep it 'simple'.

An offset could work, but it wouldn't account for a differnt daylight saving time from your 'home' zone (never mind countries within the same offset using a different daylight savings standard ... ).

I don't know enough of javascript and the features available in HA/HACS to know if a good solution is possible without adding 3rd party dependencies like the moment.js library ( https://momentjs.com/ ) or date-fns ( https://date-fns.org/ ) or whatever else is out there in open source format. I do know that time/date conversions are a can of worms you don't want to open if you can avoid it.

fufar commented 3 years ago

ok, if anyone make pr - i will merge for now close this issue