You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date strings like 1979-05-27T00:32:00+07:00 is not parsed.
According to the TOML Spec, RFC 3339 formatted date-time with offset should be parsed.
Steps to Reproduce
import*astomlfrom"@std/toml";toml.parse("time = 1979-05-27T00:32:00-07:00")// oktoml.parse("time = 1979-05-27T00:32:00+07:00")// not ok// ^
Then
error: Uncaught (in promise) SyntaxError: Parse error on line 1, column 26: Unexpected character: "+"
throw new SyntaxError(message);
^
at https://jsr.io/@std/toml/1.0.1/_parser.ts:801:13
at Module.parse (https://jsr.io/@std/toml/1.0.1/parse.ts:26:24)
at index.ts:4:6
Expected behavior
Both negative and positive time zone offsets (-07:00 and +07:00) should be parsed correctly.
Environment
OS: Ubuntu 20.04
deno version: 1.43.6
std version: jsr:@std/toml@^1.0.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Date strings like
1979-05-27T00:32:00+07:00
is not parsed.According to the TOML Spec, RFC 3339 formatted date-time with offset should be parsed.
Steps to Reproduce
Then
Expected behavior
Both negative and positive time zone offsets (
-07:00
and+07:00
) should be parsed correctly.Environment
jsr:@std/toml@^1.0.1
The text was updated successfully, but these errors were encountered: