You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Due to this PR #2362, when we perform large diffs and construct a duration from it, the wrong number of hours is computed in the resulting duration. Example:
constfrom=dayjs('2022-01-01 00:00:00');constto=dayjs('2023-02-02 01:01:01');constd=dayjs.duration(to.diff(from));console.log(d.toISOString());// prints "P1Y1M1DT15H1M1S" i.e. 15 hours, not 1
@abemedia@arrudaje #2571 #2572
I will not create any pull requests unless the repo owner will get interested. But you can use the code, if you didn't come up with your own solutions yet. Lmk if you spot some issues.
Describe the bug
Due to this PR #2362, when we perform large diffs and construct a duration from it, the wrong number of hours is computed in the resulting duration. Example:
Expected behavior
Information
The text was updated successfully, but these errors were encountered: