time: follow RFC3339 spec for datetime (#632)

This commit is contained in:
Johanan Idicula
2021-10-18 09:56:07 -04:00
committed by GitHub
parent 9e81ce1c33
commit df4bb061f8
3 changed files with 3 additions and 4 deletions
-1
View File
@@ -1107,7 +1107,6 @@ func TestTOMLTest_Valid_Datetime_LocalTime(t *testing.T) {
}
func TestTOMLTest_Valid_Datetime_Local(t *testing.T) {
t.Skip("FIXME")
input := "local = 1987-07-05T17:45:00\nmilli = 1977-12-21T10:32:00.555\nspace = 1987-07-05 17:45:00\n"
jsonRef := "{\n \"local\": {\n \"type\": \"datetime-local\",\n \"value\": \"1987-07-05T17:45:00\"\n },\n \"milli\": {\n \"type\": \"datetime-local\",\n \"value\": \"1977-12-21T10:32:00.555\"\n },\n \"space\": {\n \"type\": \"datetime-local\",\n \"value\": \"1987-07-05T17:45:00\"\n }\n}\n"
testgenValid(t, input, jsonRef)