add --utc flag to date commands to get correct UTC timestamps, closes #5070 (#5223)

pull/5224/head
Scott Anderson 2023-11-08 08:02:01 -07:00 committed by GitHub
parent 638c694de8
commit b6f96f7e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ InfluxDB {{< current-version >}} does not support deleting data **by field**.
influx delete \
--bucket example-bucket \
--start 1970-01-01T00:00:00Z \
--stop $(date +"%Y-%m-%dT%H:%M:%SZ") \
--stop $(date --utc +"%Y-%m-%dT%H:%M:%SZ") \
--predicate '_measurement="example-measurement"'
```
@ -76,7 +76,7 @@ influx delete \
influx delete \
--bucket example-bucket \
--start 1970-01-01T00:00:00Z \
--stop $(date +"%Y-%m-%dT%H:%M:%SZ") \
--stop $(date --utc +"%Y-%m-%dT%H:%M:%SZ") \
--predicate '_measurement="example-measurement" AND host="old-host"'
```

View File

@ -86,7 +86,7 @@ deletes all data in the specified bucket with timestamps between the specified `
```sh
influx delete --bucket example-bucket \
--start '1970-01-01T00:00:00Z' \
--stop $(date +"%Y-%m-%dT%H:%M:%SZ") \
--stop $(date --utc +"%Y-%m-%dT%H:%M:%SZ") \
--predicate '_measurement="example-measurement" AND exampleTag="exampleTagValue"'
```