-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Fix quotation for timestamps #515
Conversation
@@ -600,20 +601,23 @@ func ToNumber(value string) *NumberValue { | |||
} | |||
} | |||
|
|||
func looksLikeTimeValue(value string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've combine it into the isTimestamp function
cbf7fef
to
7a77092
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #515 +/- ##
==========================================
+ Coverage 79.09% 79.12% +0.02%
==========================================
Files 17 17
Lines 6110 6104 -6
==========================================
- Hits 4833 4830 -3
+ Misses 965 963 -2
+ Partials 312 311 -1 |
continue | ||
// This is a subset of the formats permitted by the regular expression | ||
// defined at http://yaml.org/type/timestamp.html. Note that time.Parse | ||
// cannot handle: "2001-12-14 21:59:43.10 -5" from the examples. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why didn't you provide a layout to handle this case ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I've actually tried supporting the layout, but Go does not seem to support the "-timezone" representation...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK ! I understand !
LGTM 👍 |
Closes #430
Before submitting your PR, please confirm the following.