Here are the results from the workbench. Note that in the timeframe for each day should start and end at "T04:00:00.000Z" to correspond to US/Eastern. The 'start' on the first day and 'end' on the last day correctly reflect the timeframe in the query given as
{
"result": [
{
"value": [
{
"eventType": "foo",
"result": 134
},
{
"eventType": "bar",
"result": 504
}
],
"timeframe": {
"start": "2014-08-31T04:00:00.000Z",
"end": "2014-09-01T00:00:00.000Z"
}
},
{
"value": [
{
"eventType": "foo",
"result": 138
},
{
"eventType": "bar",
"result": 490
}
],
"timeframe": {
"start": "2014-09-01T00:00:00.000Z",
"end": "2014-09-02T00:00:00.000Z"
}
},
{
"value": [
{
"eventType": "foo",
"result": 16
},
{
"eventType": "bar",
"result": 80
}
],
"timeframe": {
"start": "2014-09-02T00:00:00.000Z",
"end": "2014-09-02T04:00:00.000Z"
}
}
]
}I've reproduced the same result using the workbench, the 'Query Url' produced by the workbench and using the javascript api. I've tried setting the timezone to 'US/Eastern' and '-14400'. Is this a bug or am I missing something?