-
Notifications
You must be signed in to change notification settings - Fork 152
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
Remove Instant.toDateTime{,ISO}(), DateTime.toInstant() #1088
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1088 +/- ##
==========================================
- Coverage 93.59% 93.55% -0.05%
==========================================
Files 19 19
Lines 7702 7683 -19
Branches 1224 1221 -3
==========================================
- Hits 7209 7188 -21
- Misses 486 488 +2
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
These conversions are redundant, they either go through ZonedDateTime or TimeZone. Cookbook examples that used these conversions are changed, where possible, to use ZonedDateTime. Where that is not possible because of unimplemented ZonedDateTime methods, we add a FIXME note and fall back to the more verbose TimeZone conversion methods. Updating some of the cookbook examples is taken from #700. Co-authored-by: Justin Grant <[email protected]> Closes: #1026
6f5ac9c
to
0129d4f
Compare
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.
Nice!
docs/cookbook/getParseableZonedStringWithLocalTimeInOtherZone.mjs
Outdated
Show resolved
Hide resolved
Travis is having issues, so I tested locally before merging. |
These conversions are redundant, they either go through ZonedDateTime or
TimeZone.
Cookbook examples that used these conversions are changed, where possible,
to use ZonedDateTime. Where that is not possible because of unimplemented
ZonedDateTime methods, we add a FIXME note and fall back to the more
verbose TimeZone conversion methods.
Updating some of the cookbook examples is taken from #700.
Closes: #1026