Closed poswald closed 6 years ago
Discovered while looking into #103, the API doesn't respect non-normalized timezones and instead assumes Z format:
Z
$ curl -X POST "https://<endpoint>.cloudfront.net/api/v0/metrics/data" \ > -d '{ > "<metric_id>": [ > {"timestamp": "2018-04-09T01:00:00+09:00", "value": 100} > ] > }' \ > -H "x-api-key: <api_key>" -H "Content-Type: application/json" {"<metric_id>":[{"timestamp":"2018-04-09T01:00:00.000Z","value":100}]}
The timestamp returned by the API is in Z format but is now shifted 9 hours from when it should have been.
Oops, that should be fixed! Thank you for pointing it out!
Discovered while looking into #103, the API doesn't respect non-normalized timezones and instead assumes
Z
format:The timestamp returned by the API is in
Z
format but is now shifted 9 hours from when it should have been.