Skip to content

Commit

Permalink
fix(preferences(js)): Lower constraints on auto-reply dates range
Browse files Browse the repository at this point in the history
Fixes #4874
  • Loading branch information
cgx committed Nov 7, 2019
1 parent 699849c commit 70984de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions UI/WebServerResources/js/Preferences/PreferencesController.js
Expand Up @@ -507,8 +507,7 @@
if (d.Vacation.startDateEnabled) {
r = (!d.Vacation.endDateEnabled ||
!d.Vacation.endDate ||
date.getTime() <= d.Vacation.endDate.getTime()) &&
date.getTime() >= today.getTime();
date.getTime() <= d.Vacation.endDate.getTime());
}
}

Expand All @@ -523,8 +522,7 @@
if (d.Vacation.endDateEnabled) {
r = (!d.Vacation.startDateEnabled ||
!d.Vacation.startDate ||
date.getTime() >= d.Vacation.startDate.getTime()) &&
date.getTime() >= today.getTime();
date.getTime() >= d.Vacation.startDate.getTime());
}
}

Expand Down

0 comments on commit 70984de

Please sign in to comment.