(js) Allow single-day vacation autoreply

Fixes #4698
This commit is contained in:
Francis Lachapelle
2019-10-01 15:49:54 -04:00
parent 6b96f2f8de
commit 93269539d7
2 changed files with 3 additions and 2 deletions
@@ -500,7 +500,7 @@
d.Vacation.enabled) {
if (d.Vacation.startDateEnabled) {
r = (!d.Vacation.endDateEnabled ||
date.getTime() < d.Vacation.endDate.getTime()) &&
date.getTime() <= d.Vacation.endDate.getTime()) &&
date.getTime() >= today.getTime();
}
}
@@ -515,7 +515,7 @@
d.Vacation.enabled) {
if (d.Vacation.endDateEnabled) {
r = (!d.Vacation.startDateEnabled ||
date.getTime() > d.Vacation.startDate.getTime()) &&
date.getTime() >= d.Vacation.startDate.getTime()) &&
date.getTime() >= today.getTime();
}
}