Skip to content

Commit 1fccbe6

Browse files
authored
fix formatDate (#130)
1 parent bc429d2 commit 1fccbe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ func parseLongToDateWithPrecision(timestamp int64, zone *time.Location, precisio
104104
var digits int
105105

106106
switch precision {
107-
case "millisecond":
107+
case MILLISECOND:
108108
divisor = 1000
109109
digits = 3
110-
case "microsecond":
110+
case MICROSECOND:
111111
divisor = 1_000_000
112112
digits = 6
113-
case "nanosecond":
113+
case NANOSECOND:
114114
divisor = 1_000_000_000
115115
digits = 9
116116
default:

0 commit comments

Comments
 (0)