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
When I calculate the diff between two dates with a custom timezone, there are wrong results when I use days format.
This only happens if start and end date were in different summer / winter timezones (but I want to force it to calculate the diff like if there is no summer / winter time)
When I calculate the diff between two dates with a custom timezone, there are wrong results when I use days format.
This only happens if start and end date were in different summer / winter timezones (but I want to force it to calculate the diff like if there is no summer / winter time)
Here is a dummy code:
https://codepen.io/jul1ans/pen/LYbegrp?editors=0010
When I use the hours diff and calculate the days manually, it works correct.
Math.floor(totalHours / 24)
My specs:
Thank you in advance
The text was updated successfully, but these errors were encountered: