1
0
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:
Gerasimos (Makis) Maropoulos
2024-04-08 21:21:42 +03:00
parent 1d106d80a7
commit 384ca4db70
2 changed files with 40 additions and 4 deletions

View File

@@ -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",