Skip to content

Commit 7ac797b

Browse files
authored
fix: Properly format time.Time values (#207)
Closes #206 Signed-off-by: candiduslynx <candiduslynx@gmail.com>
1 parent dea3e6d commit 7ac797b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parameters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func inferTypes(params []Parameter) {
131131
param.Value = strconv.FormatFloat(float64(value), 'f', -1, 32)
132132
param.Type = SqlFloat
133133
case time.Time:
134-
param.Value = value.String()
134+
param.Value = value.Format(time.RFC3339Nano)
135135
param.Type = SqlTimestamp
136136
default:
137137
s := fmt.Sprintf("%s", param.Value)

0 commit comments

Comments
 (0)