-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamp format #1686
Comments
@benbjohnson -- Is this a bug, or do we only support the ISO8601 timestamp? |
@stevebang My understanding is that RFC3339 is a subset of ISO 8601 (https://stackoverflow.com/a/522281). We use |
@benbjohnson -- Is @bengerman13 incorrect that "the backup does not accept some valid RFC3339 timestamps"? |
The stackoverflow post from @benbjohnson states (as the RFC does):
The difference between
and the error message from the backup utility seems pretty clear that it's unhappy about the space not being a 'T' This is testable using the official InfluxDB docker container:
|
@stevebang Yeah, go ahead and change it to ISO 8601 |
After carefully reviewing the RFC3339 spec, others sources (see below), and discussing with others, the RFC 3339 format used by InfluxDB is fully RFC3339-compliant. Note the following:
Given that GNU was made aware of this issue as early as 2006 and has not addressed it, the the GNU date commands return invalid results for the I'm closing this issue since InfluxDB handles the RFC 3339 timestamps correctly, using |
URL for relevant page?
https://docs.influxdata.com/influxdb/v1.5/administration/backup_and_restore/
What products and version are you using?
Influxdb 1.5.2
Where did you look before opening the issue?
Issues here, https://tools.ietf.org/html/rfc3339#section-5.6
The docs for backup utility specify that the time specification should be RFC3339, but the backup does not accept some valid RFC3339 timestamps.
For example, the output from GNU date when passing
--rfc-3339=seconds
. I believe the docs should state that the utility requires ISO8601 timestamp.running
influxd backup -portable -start $(date --rfc-3339=seconds -d "12:00 AM yesterday") backup
gives the errorbackup: parsing time "2018-06-24" as "2006-01-02T15:04:05Z07:00": cannot parse "" as "T"
From the RFC:
The text was updated successfully, but these errors were encountered: