@glissandoo/lib 1.102.10 → 1.102.11

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.
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const date_fns_1 = require("date-fns");
7
- const date_fns_tz_1 = require("date-fns-tz");
8
7
  const lang_1 = require("../../lang");
9
8
  const lang_2 = __importDefault(require("../Model/lang"));
10
9
  const types_1 = require("./types");
@@ -67,11 +66,10 @@ class EventoBasic extends lang_2.default {
67
66
  return this.datetimeEnd.seconds - this.datetime.seconds;
68
67
  }
69
68
  get isOutDate() {
70
- return (0, date_fns_1.isPast)((0, date_fns_tz_1.toZonedTime)(this.datetimeEnd.toDate(), this.timezone));
69
+ return (0, date_fns_1.isPast)(this.datetimeEnd.toDate());
71
70
  }
72
71
  get isHappening() {
73
- return ((0, date_fns_1.isPast)((0, date_fns_tz_1.toZonedTime)(this.datetime.toDate(), this.timezone)) &&
74
- (0, date_fns_1.isFuture)((0, date_fns_tz_1.toZonedTime)(this.datetimeEnd.toDate(), this.timezone)));
72
+ return this.isOutDate && (0, date_fns_1.isFuture)(this.datetimeEnd.toDate());
75
73
  }
76
74
  get timezone() {
77
75
  return this.data.timezone || 'Europe/Madrid';
@@ -80,7 +78,7 @@ class EventoBasic extends lang_2.default {
80
78
  return this.data.responseDeadlineAt || this.datetime;
81
79
  }
82
80
  get isResponseAllowed() {
83
- return (0, date_fns_1.isFuture)((0, date_fns_tz_1.toZonedTime)(this.responseDeadlineAt.toDate(), this.timezone));
81
+ return (0, date_fns_1.isFuture)(this.responseDeadlineAt.toDate());
84
82
  }
85
83
  get selectionMode() {
86
84
  return this.data.selectionMode || null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.102.10",
3
+ "version": "1.102.11",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",