@fileverse-dev/formulajs 4.4.36 → 4.4.37

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/lib/cjs/index.cjs CHANGED
@@ -8107,15 +8107,17 @@ const WEEKEND_TYPES = [
8107
8107
  const datePartition = (date) => {
8108
8108
  const pad = (n) => n.toString().padStart(2, "0");
8109
8109
 
8110
- const day = pad(date.getDate());
8111
- const month = pad(date.getMonth() + 1);
8112
- const year = date.getFullYear();
8113
- const hours = pad(date.getHours());
8114
- const minutes = pad(date.getMinutes());
8115
- const seconds = pad(date.getSeconds());
8110
+ const day = pad(date.getUTCDate());
8111
+ const month = pad(date.getUTCMonth() + 1);
8112
+ const year = date.getUTCFullYear();
8113
+ const hours = pad(date.getUTCHours());
8114
+ const minutes = pad(date.getUTCMinutes());
8115
+ const seconds = pad(date.getUTCSeconds());
8116
+
8116
8117
  return { day, month, year, hours, minutes, seconds };
8117
8118
  };
8118
8119
 
8120
+
8119
8121
  /**
8120
8122
  * Returns the serial number of a particular date.
8121
8123
  *
package/lib/esm/index.mjs CHANGED
@@ -8105,15 +8105,17 @@ const WEEKEND_TYPES = [
8105
8105
  const datePartition = (date) => {
8106
8106
  const pad = (n) => n.toString().padStart(2, "0");
8107
8107
 
8108
- const day = pad(date.getDate());
8109
- const month = pad(date.getMonth() + 1);
8110
- const year = date.getFullYear();
8111
- const hours = pad(date.getHours());
8112
- const minutes = pad(date.getMinutes());
8113
- const seconds = pad(date.getSeconds());
8108
+ const day = pad(date.getUTCDate());
8109
+ const month = pad(date.getUTCMonth() + 1);
8110
+ const year = date.getUTCFullYear();
8111
+ const hours = pad(date.getUTCHours());
8112
+ const minutes = pad(date.getUTCMinutes());
8113
+ const seconds = pad(date.getUTCSeconds());
8114
+
8114
8115
  return { day, month, year, hours, minutes, seconds };
8115
8116
  };
8116
8117
 
8118
+
8117
8119
  /**
8118
8120
  * Returns the serial number of a particular date.
8119
8121
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/formulajs",
3
- "version": "4.4.36",
3
+ "version": "4.4.37",
4
4
  "description": "JavaScript implementation of most Microsoft Excel formula functions",
5
5
  "author": "Formulajs",
6
6
  "publishConfig": {