2513: fix(auto-reply): include start and end dates in the auto-reply period r=mergify[bot] a=bb-wkr

## What type of PR?
bug-fix

## What does this PR do?
Include start and end dates in the auto-reply period

### Related issue(s)
closes #2512

## Prerequisites
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry is not applicable, you can check it or remove it from the list.

- [X] In case of feature or enhancement: documentation updated accordingly
- [X] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file.


Co-authored-by: wkr <wkr@bitsbeats.com>
main
bors[bot] 2 years ago committed by GitHub
commit 5b2b379c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -546,8 +546,8 @@ class User(Base, Email):
now = date.today() now = date.today()
return ( return (
self.reply_enabled and self.reply_enabled and
self.reply_startdate < now and self.reply_startdate <= now and
self.reply_enddate > now self.reply_enddate >= now
) )
@property @property

@ -0,0 +1 @@
Fix: include start and end dates in the auto-reply period
Loading…
Cancel
Save