dce-reactkit 4.2.7 → 4.2.8-beta-timestamp.2

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/esm/index.js CHANGED
@@ -16662,7 +16662,8 @@ const getTimestampFromTimeInfoInET = (opts) => {
16662
16662
  const min = padZerosLeft(minute, 2);
16663
16663
  // Build ET ISO string and convert to UTC timestamp
16664
16664
  const etISOString = `${year}-${mm}-${dd}T${hh}:${min}:00${etOffset}`;
16665
- let timestamp = (new Date(etISOString)).getTime();
16665
+ const baseTimestamp = (new Date(etISOString)).getTime();
16666
+ let timestamp = baseTimestamp;
16666
16667
  // Heat seek to get the right timestamp
16667
16668
  const maxOffset = 24 * 60; // 24 hours in minutes
16668
16669
  let currentOffset = 0; // minutes
@@ -16685,7 +16686,7 @@ const getTimestampFromTimeInfoInET = (opts) => {
16685
16686
  currentOffset += (offsetDirection * offsetIncrement);
16686
16687
  // Update timestamp
16687
16688
  const offsetMs = currentOffset * 60 * 1000;
16688
- timestamp += offsetMs;
16689
+ timestamp = baseTimestamp + offsetMs;
16689
16690
  // Check timestamp again
16690
16691
  const newDirection = checkTimestamp({
16691
16692
  timestamp,