Weird date information on darksky weather widget on safari

hello,

I’ve configured darksky weather widget.

on Safari it started on yesterday, on chrome it started form today.


left is safari, right side is chrome. On ios app it also looks like on Safari.

Could you please help me fix this issue and make it the same on safari and chrome? And, actually, which one is right?

Config:

weather:
  - platform: darksky
    api_key: !secret darksky_api_key
    latitude: !secret office_lat
    longitude: !secret office_lon
    name: Work
    mode: daily
    scan_interval: '0:30'


  - platform: darksky
    api_key: !secret darksky_api_key
    latitude: !secret home_lat
    longitude: !secret home_lon
    name: Home
    mode: daily
    scan_interval: '0:30'

sensor:
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'date_time'
      - 'date_time_iso'
      - 'time_date'
      - 'time_utc'
      - 'beat'

Thank you,
AP

There is an issue for this on GitHub. https://github.com/home-assistant/home-assistant/issues/23166

Have you tried http://<your-hass-instance>:8123/states?latest?

Have you configured the frontend javascript version?

frontend:
  javascript_version: latest

I don’t know if this is related or even relevant. I was writing a bash script to d/l usage data from my ISP. The date was in this format:

2019-04-22 09:10:02

Safari on my iPad would then say this was 19:10:02 ie 10 hours in the future. We are GMT+10 hours.
So while the linux convention is to assume a time is local time, iOS in the absense of any other information treats it as GMT and adds the time offset.

In the end, I massaged the string to read like this:

2019-04-22T09:10:02+10:00

ie the full ISO format and it is now correct on all my devices. As I say I don’t know if this is a similar glitch.

1 Like