Uh oh!
There was an error while loading. Please reload this page.
Date Times #151
Closed
ByronMayne
started this conversation in
General
Replies: 1 comment 1 reply
Thanks a ton, for spending the time investigating this. I think it would be great to lean against iso and enforce this for datetime parsing. Awesome work! |
1 reply
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey @VisualBean,
I was working on fixing up the unit tests and trying to solve some of the build issues. A lot of the complexity comes from converting date times. For example the unit tests fail on linux due to the
GetYamlCompatibleStringfunction. In side this code we have a block that attempts to convert to date time.The problem here is that depending on the platform and the numbers used this produces different results
"3.2.1"true'3.2.1'"3.2.1"true'3.2.1'"2.6.0"false2.6.0💀"2.6.0"true'2.6.0'That being the case, do I am thinking it's a good idea to be more strict about the formats of the dates. Then we can handle explicit cases rather then depending on the platform implementation.
Question
Since both Javascript (for Json) and OpenApi say to use
ISO8601why not unify behind that and remove this ambiguity that happens across platforms?All reactions