Date off by 4 hours


#1

A strange issue I’ve noticed with daily data is it’s off by 4 hours:
app/history/trends?monitor_id=1234&scale=DAY&start=2018-10-16T03:00:00.000000
Returns data from 2018-10-15, but
app/history/trends?monitor_id=1234&scale=DAY&start=2018-10-16T04:00:00.000000
Returns data from 2018-10-16

Just keep this in mind if you’re pulling from the unofficial API that there’s some weird timezone stuff going on. The good news is if you’re pulling data from the DAY scale, it doesn’t matter what hour you pick if it’s past 4am


#2

Maybe it uses UTC/GMT. That is off by 4 hours from US EDT.


#3

Yes all times are in UTC coming from the API, so this would be expected. You’ll have to convert them to your own timezone.