(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
+1
View File
@@ -22,6 +22,7 @@ Bug fixes
- [web] properly encode URL of cards from exteral sources
- [web] restore cards selection after automatic refresh (#4809)
- [web] don't mark draft as deleted when SOGoMailKeepDraftsAfterSend is enabled (#4830)
- [web] allow single-day vacation auto-reply (#4698)
- [core] honor IMAPLoginFieldName also when setting IMAP ACLs
- [core] honor groups when setting IMAP ACLs
- [core] honor "any authenticated user" when setting IMAP ACLs
@@ -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();
}
}