File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 44
55require (
66 github.com/google/go-cmp v0.5.5
7- github.com/sanity-io/litter v1.5.5 // indirect
7+ github.com/sanity-io/litter v1.5.8
88)
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
44github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
55github.com/sanity-io/litter v1.5.5 h1:iE+sBxPBzoK6uaEP5Lt3fHNgpKcHXc/A2HGETy0uJQo =
66github.com/sanity-io/litter v1.5.5 /go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U =
7+ github.com/sanity-io/litter v1.5.8 h1:uM/2lKrWdGbRXDrIq08Lh9XtVYoeGtcQxk9rtQ7+rYg =
8+ github.com/sanity-io/litter v1.5.8 /go.mod h1:9gzJgR2i4ZpjZHsKvUXIRQVk7P+yM3e+jAF7bU2UI5U =
79github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
810golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4 =
911golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 /go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0 =
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func ParseDateTime(value string) (DateTime, error) {
2525 return DateTime {}, errors .New ("invalid datetime string" )
2626 }
2727
28- t , err := time .Parse (DateTimeFormat [: len ( value )] , value )
28+ t , err := time .Parse (time . RFC3339Nano , value )
2929 if err != nil {
3030 return DateTime {}, err
3131 }
You can’t perform that action at this time.
0 commit comments