Villhellm / lovelace-clock-card

Basic analog clock for Lovelace
49 stars 12 forks source link

Incorrect time shown #5

Closed Gordontgopher closed 4 years ago

Gordontgopher commented 4 years ago

It appears that if the location is not recognised then local time is shown. Using the following config;

      - type: "custom:clock-card"
        time_zone: "America/Concord"
        size: 200
        show_City: true
        show_continent: true
        disable_seconds: false
      - type: "custom:clock-card"
        time_zone: "England/London"
        size: 200
        show_city: true
        show_continent: true
        disable_seconds: false 

Gives this result: Screenshot 2020-08-01 at 11 08 27

But

      - type: "custom:clock-card"
        time_zone: "America/Chicago"
        size: 200
        show_City: true
        show_continent: true
        disable_seconds: false
      - type: "custom:clock-card"
        time_zone: "England/London"
        size: 200
        show_city: true
        show_continent: true
        disable_seconds: false

Screenshot 2020-08-01 at 11 12 40

(edited several times to try to get code tags to work!) Also City doesn't appear in either case (probably a separate issue?)

Villhellm commented 4 years ago

That’s not a valid timezone, you have to pick a valid tz timezone https://en.m.wikipedia.org/wiki/List_of_tz_database_time_zones I’ll add that to the readme later today

And you’ve capitalized “city” in your config, that’s why show_city isn’t working

Gordontgopher commented 4 years ago

OK that explains it :) I don't know how I managed to capitalise the city as I copied and pasted the first clock for the second, but I managed it!