This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git
The following commit(s) were added to refs/heads/main by this push:
new 1fccbe6 fix formatDate (#130)
1fccbe6 is described below
commit 1fccbe63a3c74a79f64d0995be2fc36481d0dea7
Author: shuwenwei <[email protected]>
AuthorDate: Wed Apr 23 16:36:45 2025 +0800
fix formatDate (#130)
---
client/utils.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/client/utils.go b/client/utils.go
index 5ffbe46..8dd38e1 100644
--- a/client/utils.go
+++ b/client/utils.go
@@ -104,13 +104,13 @@ func parseLongToDateWithPrecision(timestamp int64, zone
*time.Location, precisio
var digits int
switch precision {
- case "millisecond":
+ case MILLISECOND:
divisor = 1000
digits = 3
- case "microsecond":
+ case MICROSECOND:
divisor = 1_000_000
digits = 6
- case "nanosecond":
+ case NANOSECOND:
divisor = 1_000_000_000
digits = 9
default: