Fix incorrect check using reflect.Float32 instead of reflect.Float64

This commit is contained in:
Patrick Pacher
2023-09-07 11:59:36 +02:00
parent 4cd6823066
commit 87f19bdcc2

View File

@@ -181,7 +181,7 @@ func DatetimeEncoder(loc *time.Location) EncodeFunc {
return nil, false, fmt.Errorf("failed to parse time as RFC3339: %w", err)
}
case (normalizedKind == reflect.Int || normalizedKind == reflect.Uint || normalizedKind == reflect.Float32) && colDef.IsTime:
case (normalizedKind == reflect.Int || normalizedKind == reflect.Uint || normalizedKind == reflect.Float64) && colDef.IsTime:
t = time.Unix(val.Int(), 0)
default: