We have an alert that keeps track of new_state_date
and I’ve added a sister field, prev_state_date
. When these are updated, they’re updated with the appropriate UTC timestamp:
However, when I query these fields from the API, I get:
{[....], "NewStateDate":"2018-04-20T16:05:41-04:00","PrevStateDate":"2018-04-20T15:45:11-04:00", [....]}
Why is this sending timestamps in my local (EDT) timestamp, when it’s explicitly stored as UTC (16:00 EDT is in the future from this post)
Further testing, I tried hitting our hosted app (connected to the same database) instead of my local dev server, and it actually returns in the correct format: "NewStateDate":"2018-04-20T16:05:41Z","PrevStateDate":"2018-04-20T15:45:11Z"
So I’m not sure if this is a Grafana issue, but any help would be appreciated – would make local debugging a lot easier