@energycap/components 0.39.21 → 0.39.22-ECAP-26034-manage-channel.20240827-1215

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.
@@ -424,8 +424,8 @@ class DateTimeHelper {
424
424
  /**
425
425
  * Return true if @see date is equal to the @see endOfTime
426
426
  */
427
- static isEndOfTime(date) {
428
- const endOfTime = this.endOfTime;
427
+ static isEndOfTime(date, timeZoneOffset = false) {
428
+ const endOfTime = timeZoneOffset ? this.endOfTimeUTC : this.endOfTime;
429
429
  return this.isSameDay(date, endOfTime);
430
430
  }
431
431
  /**
@@ -502,6 +502,8 @@ class DateTimeHelper {
502
502
  DateTimeHelper.beginningOfTime = new Date(1899, 11, 31);
503
503
  /** 3000-01-01 */
504
504
  DateTimeHelper.endOfTime = new Date(3000, 0, 1);
505
+ /** 3000-01-01 UTC */
506
+ DateTimeHelper.endOfTimeUTC = moment.utc('3000-01-01').toDate();
505
507
  /** Default effective date for new AccountMeter relationships: 2010-01-01 */
506
508
  DateTimeHelper.defaultAccountMeterEffectiveDate = new Date(2010, 0, 1);
507
509
  /** The default date that a newly created account becomes effective: 2010-01-01 */