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

DateTime as first value in table list throws UndefinedError #22

Open
mradke opened this issue Oct 19, 2019 · 1 comment
Open

DateTime as first value in table list throws UndefinedError #22

mradke opened this issue Oct 19, 2019 · 1 comment

Comments

@mradke
Copy link

mradke commented Oct 19, 2019

When structuring a toml file as:

[[entries]]
in = 2019-10-16T13:30:00Z
out = 2019-10-16T17:00:00Z
tags = [
  "Elixir"
]

The parser fails with: {:error, "%Protocol.UndefinedError{description: \"\", protocol: Enumerable, value: ~U[2019-10-16 13:30:00Z]}"}

When I change the order in the table list as such:

[[entries]]
tags = [
  "Elixir"
]
in = 2019-10-16T13:30:00Z
out = 2019-10-16T17:00:00Z

The parser is happy. 🙂
Any pointers where I could start looking? (I would like to provide a patch for this)

@xsteve
Copy link

xsteve commented May 15, 2024

I can confirm that problem - and the work around to re-order the entries and put the date not as first assignment in the entries list
It would be nice to see that fixed.

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

No branches or pull requests

2 participants