Skip to content

Commit

Permalink
add Z truncation in time
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Feb 8, 2024
1 parent 609b91e commit f518f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/converter/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/viant/xreflect"
"reflect"
"strconv"
"strings"
"time"
)

Expand Down Expand Up @@ -219,6 +220,7 @@ func toTime(raw string, format string) (time.Time, error) {
if format == "" {
format = time.RFC3339
}
raw = strings.Trim(raw, "Z")
asTime, err := ftime.Parse(format, raw)
if err != nil {
layout := "2006-01-02-07:00"
Expand Down

0 comments on commit f518f67

Please sign in to comment.