Date Times #151
Closed
ByronMayne
started this conversation in
General
Date Times
#151
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! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
GetYamlCompatibleString
function. 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"
false
2.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
ISO8601
why not unify behind that and remove this ambiguity that happens across platforms?Beta Was this translation helpful? Give feedback.
All reactions