Daylight savings issue. Only 23 hours between the dates, or 25 depending on your hemisphere. I use round(datediff(“h”, d1, d2) *24},0) or something to that effect. Takes care of the daylight savings change over
Copy from an older thread:
I wrote apps which need and do exact calculations of dates with adding and subtracting days and months. Never cared about setting to midnight.
There are several libraries which provide exact date calculations. It seems important to have a library which provides locales as well.
Currently I prefer to use moment.js. My extraheaders property e.g. would contain: