@stacksjs/calendar-api 0.61.24 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -544,7 +544,7 @@ var buildLink = function(propertiesAndComponents) {
|
|
|
544
544
|
return `data:text/calendar;charset=utf8;base64,${btoa(propertiesAndComponents.join("\r\n"))}`;
|
|
545
545
|
};
|
|
546
546
|
var dateDiffInDays = function(from, to) {
|
|
547
|
-
const _MS_PER_DAY =
|
|
547
|
+
const _MS_PER_DAY = 1000 * 60 * 60 * 24;
|
|
548
548
|
const utc1 = Date.UTC(from.getFullYear(), from.getMonth(), from.getDate());
|
|
549
549
|
const utc2 = Date.UTC(to.getFullYear(), to.getMonth(), to.getDate());
|
|
550
550
|
return Math.floor((utc2 - utc1) / _MS_PER_DAY);
|