Does timestamp accept yyyy-mm-ddThh:mm:ssZ format



linux-BQURel:/homework # curl -i -XPOST “http://localhost:8086/write?db=mydb&precision=rfc3339” --data-binary 'mymeas,mytag=1 myfield=90 2015-06-11T20:46:02Z’
HTTP/1.1 400 Bad Request
Content-Type: application/json
Request-Id: 45ee29d9-21b4-11e8-8020-000000000000
X-Influxdb-Build: OSS
X-Influxdb-Error: unable to parse ‘mymeas,mytag=1 myfield=90 2015-06-11T20:46:02Z’: bad timestamp
X-Influxdb-Version: 1.4.3
X-Request-Id: 45ee29d9-21b4-11e8-8020-000000000000
Date: Wed, 07 Mar 2018 03:04:38 GMT
Content-Length: 92

now i get errors, then what’s the correct command?


Hi Yongan,
influxdb support rfc3339 format. You can read the document here