Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 19, 2024
1 parent 713c3db commit 5c632fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/typing/ext/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func TestParseFromInterface(t *testing.T) {
value, err := ParseFromInterface("2024-09-19T16:05:18.630Z", TimestampTzKindType)
assert.NoError(t, err)
assert.Equal(t, "2024-09-19T16:05:18.630Z", value.String(""))
assert.Equal(t, RFC3339MillisecondUTC, value.nestedKind.Format)
}
}

Expand Down
10 changes: 5 additions & 5 deletions lib/typing/ext/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ const (
)

var supportedDateTimeLayouts = []string{
RFC3339MillisecondUTC,
time.RFC3339Nano,
// TODO: This should be pulled into `TIMESTAMP_NTZ`
"2006-01-02T15:04:05.000Z", // RFC 3339 without timezone
ISO8601,
time.Layout,
time.ANSIC,
Expand All @@ -39,7 +38,8 @@ var SupportedTimeFormats = []string{

// RFC3339 variants
const (
RFC3339Millisecond = "2006-01-02T15:04:05.000Z07:00"
RFC3339Microsecond = "2006-01-02T15:04:05.000000Z07:00"
RFC3339Nanosecond = "2006-01-02T15:04:05.000000000Z07:00"
RFC3339MillisecondUTC = "2006-01-02T15:04:05.000Z"
RFC3339Millisecond = "2006-01-02T15:04:05.000Z07:00"
RFC3339Microsecond = "2006-01-02T15:04:05.000000Z07:00"
RFC3339Nanosecond = "2006-01-02T15:04:05.000000000Z07:00"
)

0 comments on commit 5c632fd

Please sign in to comment.