puvox-library 1.0.33 → 1.0.34

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.
@@ -1008,11 +1008,12 @@ const puvox_library =
1008
1008
  return result;
1009
1009
  },
1010
1010
  daysBetween(a, b, utc = true){
1011
+ // https://stackoverflow.com/a/15289883/2377343
1011
1012
  const _MS_PER_DAY = 1000 * 60 * 60 * 24;
1012
1013
  let d1, d2;
1013
1014
  // Discard the time and time-zone information.
1014
1015
  if (utc) {
1015
- d1 = Date.UTC(a.getUTCgetFullYear(), a.getUTCMonth(), a.getUTCDate());
1016
+ d1 = Date.UTC(a.getUTCFullYear(), a.getUTCMonth(), a.getUTCDate());
1016
1017
  d2 = Date.UTC(b.getUTCFullYear(), b.getUTCMonth(), b.getUTCDate());
1017
1018
  } else {
1018
1019
  d1 = Date.UTC(a.getFullYear(), a.getMonth(), a.getDate());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puvox-library",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "library-class-javascript",
5
5
  "main": "library_standard.js",
6
6
  "scripts": {