Have downloaded the wunderdates. I am in the UTC+10 timezone.
So far, my experience is that when the current time is between 00:00+10 and 09:59+10 (14:00UTC to 23:59 UTC) (so the local date is one day in advance of the UTC date), the API fetches data for the local-time day immediately following the date specified in the URL. ie a request with date=20190528 returns the data observations recorded on 20190529 local time. At all other times (so far) the api returns the data for the local time day specified in the request URL (as expected). >From what I understand, you are in the UTC-4 time zone and your experience is that when the current time is between 20:00-4 and 23:59-4 (00:00UTC to 03:59UTC) (so the local date is one day behind the UTC date), the API fetches data for the local-time date immediately before the date specified in the URL. ie a request with date=20190529 returns the data for observations recorded on 20190527 local time. At all other times, I gather the api returns the data for the local time day specified in the request URL (as expected). I'll conduct further tests, and will certainly report anything that doesn't fit my hypothesis that the unwanted behaviour reflects the difference between the current local time date and the current UTC date. But its difficult to see how there could be more to it than this. (Famous last words). It's now 20:14+10 on 20190530 (10:14UTC on 20190503) The last three lines of produced by ./wunderdates are (as expected) epoch: 1559210400 date_epoch_local: 2019-05-30 20:00:00 utcepoch: 1559209400 date_epoch_utc: 2019-05-30 10:00:00 tz: Australia/Sydney obsTimeUtc: 2019-05-30T10:00:00Z obsTimeLocal: 2019-05-30 20:00:00 epoch: 1559210700 date_epoch_local: 2019-05-30 20:05:00 utcepoch: 1559209700 date_epoch_utc: 2019-05-30 10:05:00 tz: Australia/Sydney obsTimeUtc: 2019-05-30T10:05:00Z obsTimeLocal: 2019-05-30 20:05:00 Number of WU records: 242 Rod -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/59d22f5e-051c-459d-bc38-b02c087a21c8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
