Closed tania-pets closed 3 years ago
We accept a PR that adds a test and a fix for this.
I'll be happy to try to solve this issue.
Warning: the principal author of the package thinks that this is a difficult change: https://twitter.com/brendt_gd/status/1313127606640881671
I also created a pull request (#69) which not add precision parameter, but it is calculate the difference between the dates correctly.
Seems that
touchesWith()
will always return true if the compared periods are in the same day, even if the times are not really touched and the precision is SECOND.Example:
This leads to
gap()
function not detecting the gap for such cases.