fix(go): write tdengine timestamps as epoch millis

This commit is contained in:
lingniu
2026-07-03 09:17:53 +08:00
parent a16043c032
commit 75fbd92de9
2 changed files with 10 additions and 1 deletions

View File

@@ -420,7 +420,7 @@ func literal(value any) string {
}
switch typed := value.(type) {
case time.Time:
return "'" + typed.UTC().Format("2006-01-02 15:04:05.000") + "'"
return strconv.FormatInt(typed.UnixMilli(), 10)
case string:
return "'" + quote(typed) + "'"
case envelope.ParseStatus: