Z suffix should be no-op
This commit is contained in:
@@ -650,6 +650,7 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error {
|
||||
switch rc.decltype[i] {
|
||||
case "timestamp", "datetime", "date":
|
||||
var t time.Time
|
||||
s = strings.TrimSuffix(s, "Z")
|
||||
for _, format := range SQLiteTimestampFormats {
|
||||
if timeVal, err = time.ParseInLocation(format, s, time.UTC); err == nil {
|
||||
t = timeVal
|
||||
|
||||
Reference in New Issue
Block a user