Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove failing test #41

Merged
merged 1 commit into from
Jul 17, 2016
Merged

Remove failing test #41

merged 1 commit into from
Jul 17, 2016

Conversation

kevinburke
Copy link
Contributor

The parser is able to handle datetimes without a trailing Z - it interprets
them as valid datetimes in the local timezone.

As far as I can tell, this is valid according to the spec:

You may omit the local offset and let the parser or host application decide
that information. A good default is to use the host machine's local offset.

We unfortunately can't move this to the valid folder, since the current
implementation parses in the user's timezone, whatever timezone that is, so
whatever value got hardcoded in the .json file would fail for every user not
using that timezone.

Another alternative would be to modify the parser to disallow timestamps that
don't have a timezone set, or always default to UTC; I'm OK with anything but
I think it would be good to fix the tests.

The parser is able to handle datetimes without a trailing Z - it interprets
them as valid datetimes in the local timezone.

As far as I can tell, this is valid according to the spec:

> You may omit the local offset and let the parser or host application decide
> that information. A good default is to use the host machine's local offset.

We unfortunately can't move this to the `valid` folder, since the current
implementation parses in the user's timezone, whatever timezone that is, so
whatever value got hardcoded in the `.json` file would fail for every user not
using that timezone.

Another alternative would be to modify the parser to disallow timestamps that
don't have a timezone set, or always default to UTC; I'm OK with anything but
I think it would be good to fix the tests.
@BurntSushi
Copy link
Member

Fixing the tests is good. Once TOML 1.0 hits, I'll take a sweep at these tests and get them updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants