Weird date information on darksky weather widget on safari

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