Skip to content

Commit c0763db

Browse files
committed
fix toDateTime64String
1 parent 52f64af commit c0763db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/logcourier/logfetch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
// correctly interprets as DateTime64(3). The Go driver truncates milliseconds
1313
// when binding time.Time directly to DateTime64 parameters.
1414
func toDateTime64String(t time.Time) string {
15-
return fmt.Sprintf("%.3f", float64(t.UnixMilli())/1000.0)
15+
return t.UTC().Format("2006-01-02 15:04:05.000")
1616
}
1717

1818
// LogFetcher fetches logs from ClickHouse

0 commit comments

Comments
 (0)