@optimiser/common 1.0.437 → 1.0.438
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/lib/utility.js +1 -1
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -4482,7 +4482,7 @@ function NextServiceDateForDashboard(options) {
|
|
|
4482
4482
|
if (Frequency === "daily") {
|
|
4483
4483
|
date = moment_1.default.tz(time, formattedTimeStr, Timezone); //.format();
|
|
4484
4484
|
if (!CheckDateNotInPast(currentUtcTime, date)) {
|
|
4485
|
-
date = moment_1.default.tz(time, formattedTimeStr, Timezone).add(1, "d"); // add 1
|
|
4485
|
+
date = options.NextServiceDate ? (0, moment_1.default)(options.NextServiceDate).add(1, "d") : moment_1.default.tz(time, formattedTimeStr, Timezone).add(1, "d"); // add 1 day
|
|
4486
4486
|
}
|
|
4487
4487
|
}
|
|
4488
4488
|
else if (Frequency === "weekly") {
|