Skip to content

Commit 789b388

Browse files
authored
Use rfc3339 as default timestamp precision (#51)
According to https://docs.influxdata.com/influxdb/v1.7/tools/shell/#precision-rfc3339-h-m-s-ms-u-ns, we should use rfc3339 instead of empty string as the default timestamp precision
1 parent 6cbb695 commit 789b388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/query/write_query.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl WriteQuery {
9292

9393
pub fn get_precision(&self) -> String {
9494
let modifier = match self.timestamp {
95-
Timestamp::Now => return String::from(""),
95+
Timestamp::Now => "rfc3339",
9696
Timestamp::Nanoseconds(_) => "ns",
9797
Timestamp::Microseconds(_) => "u",
9898
Timestamp::Milliseconds(_) => "ms",

0 commit comments

Comments
 (0)