diff options
Diffstat (limited to 'constraint.cc')
-rw-r--r-- | constraint.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/constraint.cc b/constraint.cc index 4720e62b..fe00f4d2 100644 --- a/constraint.cc +++ b/constraint.cc @@ -93,10 +93,10 @@ bool matches(const masks_list& regexps, const std::string& str, bool constraints_t::matches_date_range(const std::time_t date) const { - if (have_beginning && difftime(date, begin_date) < 0) + if (begin_date != -1 && difftime(date, begin_date) < 0) return false; - if (have_ending && difftime(date, end_date) >= 0) + if (end_date != -1 && difftime(date, end_date) >= 0) return false; if (have_date_mask) { |