@discomedia/utils 1.0.30 → 1.0.31

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.mjs CHANGED
@@ -665,7 +665,8 @@ function getMarketStatusImpl(date = new Date()) {
665
665
  const nextMarketDay = calendar.getNextMarketDay(date);
666
666
  nextStatusTime = getDayBoundaries(nextMarketDay, 'extended_hours').start;
667
667
  }
668
- const nextStatusTimeDifference = nextStatusTime.getTime() - nyDate.getTime();
668
+ // I think using nyDate here may be wrong - should use current time? i.e. date.getTime()
669
+ const nextStatusTimeDifference = nextStatusTime.getTime() - date.getTime();
669
670
  return {
670
671
  time: date,
671
672
  timeString: formatNYLocale(nyDate),