forked from reblws/toml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat datetime as a primitive when encoding.
This CL fixes encoding of time.Time elements, which was broken in the following three ways: - datetime zone was not coerced to UTC. - datetime elements were not printed together with the rest of simple types (because isStructOrMap returned true for time.Time), and were not separated by a newline. - arrays of datetime elements resulted in a panic (because isTOMLTableType did not handle them as a primitive type).
- Loading branch information
1 parent
615e355
commit eaa9a50
Showing
2 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters