mirror of
https://github.com/kataras/iris.git
synced 2026-01-09 04:51:56 +00:00
minor: add some x/jsonx.ISO8601 shortcuts
more features designed for the past 2-3 months to come, this is just a hotfix
This commit is contained in:
@@ -49,6 +49,12 @@ func TestParseISO8601(t *testing.T) {
|
||||
want: ISO8601(time.Date(2024, 01, 02, 15, 04, 05, 0, time.UTC)),
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "Timestamp with Zulu time with microseconds",
|
||||
input: "2024-04-08T08:05:04.830140",
|
||||
want: ISO8601(time.Date(2024, 04, 8, 8, 05, 04, 830140*1000, time.UTC)),
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "Basic ISO8601 layout",
|
||||
input: "2024-01-02T15:04:05",
|
||||
|
||||
Reference in New Issue
Block a user