turf-common 1.4.2-beta.49 → 1.4.2-beta.50

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.
@@ -122,7 +122,8 @@ var BookingCode = /** @class */ (function () {
122
122
  if (dateWithToTimeCode.slice(-4) === _utils_1.END_OF_DAY_TIME_CODE) {
123
123
  dateWithToTimeCode = dateWithToTimeCode.slice(0, -4) + "2359";
124
124
  }
125
- var bookingToDateTimeWithDelay = date_util_1.dateUtilService.addMinutesTo(this.getToDate(), delayInMinutes + (this.isAcrossDate() ? 24 * 60 : 0));
125
+ var toDate = date_util_1.dateUtilService.convertStringToDate(dateWithToTimeCode, "yyMMddHHmm");
126
+ var bookingToDateTimeWithDelay = date_util_1.dateUtilService.addMinutesTo(toDate, delayInMinutes + (this.isAcrossDate() ? 24 * 60 : 0));
126
127
  var currentTime = date_util_1.dateUtilService.getIndianDate();
127
128
  return bookingToDateTimeWithDelay > currentTime;
128
129
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turf-common",
3
- "version": "1.4.2-beta.49",
3
+ "version": "1.4.2-beta.50",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",