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