@datarailsshared/datarailsshared 1.4.479 → 1.4.482

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.
@@ -521,7 +521,7 @@
521
521
  var year = moment$8.unix(this.dateObj.date).year();
522
522
  var fiscal_year_starts_from = this.fiscalYearStartsFrom || 1;
523
523
  var fiscal_year_back = this.fiscalYearBack || false;
524
- var chosenDate = moment$8.unix(this.dateObj.date);
524
+ var chosenDate = +moment$8.unix(this.dateObj.date);
525
525
  if (!Number.isNaN(month) && !Number.isNaN(year)) {
526
526
  var date = new Date(year, month, 1, 12, 0, 0, 0);
527
527
  if (fiscal_year_starts_from !== 1) {
@@ -545,7 +545,7 @@
545
545
  name: this.name,
546
546
  value: this.dateObj.date,
547
547
  calculatedValue: calculatedDate.unix(),
548
- notCalculatedDate: chosenDate,
548
+ chosenValue: chosenDate,
549
549
  label: ((_a = _.find(this.forecastTags, { value: this.forecastValue })) === null || _a === void 0 ? void 0 : _a.label) + " (" + year + ")",
550
550
  locked: !this.dateFilter(moment$8.unix(this.dateObj.date)),
551
551
  };