dce-reactkit 4.2.7 → 4.2.8-beta-timestamp.1
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/cjs/index.js
CHANGED
|
@@ -16689,7 +16689,8 @@ const getTimestampFromTimeInfoInET = (opts) => {
|
|
|
16689
16689
|
const min = padZerosLeft(minute, 2);
|
|
16690
16690
|
// Build ET ISO string and convert to UTC timestamp
|
|
16691
16691
|
const etISOString = `${year}-${mm}-${dd}T${hh}:${min}:00${etOffset}`;
|
|
16692
|
-
|
|
16692
|
+
const baseTimestamp = (new Date(etISOString)).getTime();
|
|
16693
|
+
let timestamp = baseTimestamp;
|
|
16693
16694
|
// Heat seek to get the right timestamp
|
|
16694
16695
|
const maxOffset = 24 * 60; // 24 hours in minutes
|
|
16695
16696
|
let currentOffset = 0; // minutes
|
|
@@ -16712,7 +16713,7 @@ const getTimestampFromTimeInfoInET = (opts) => {
|
|
|
16712
16713
|
currentOffset += (offsetDirection * offsetIncrement);
|
|
16713
16714
|
// Update timestamp
|
|
16714
16715
|
const offsetMs = currentOffset * 60 * 1000;
|
|
16715
|
-
timestamp
|
|
16716
|
+
timestamp = baseTimestamp + offsetMs;
|
|
16716
16717
|
// Check timestamp again
|
|
16717
16718
|
const newDirection = checkTimestamp({
|
|
16718
16719
|
timestamp,
|