fixed ##190

This commit is contained in:
Tim Gröger 2020-02-23 11:46:38 +01:00
parent e00f93881f
commit 576002a95c
1 changed files with 2 additions and 2 deletions

View File

@ -81,8 +81,8 @@ class UserController(metaclass=Singleton):
def checkBarUser(self, user):
date = datetime.now()
zero = date.replace(hour=0, minute=0, second=0, microsecond=0)
end = zero + timedelta(hours=11)
startdatetime = date.replace(hour=11, minute=0, second=0, microsecond=0)
end = zero + timedelta(hours=12)
startdatetime = date.replace(hour=12, minute=0, second=0, microsecond=0)
if date > zero and end > date:
startdatetime = startdatetime - timedelta(days=1)
enddatetime = startdatetime + timedelta(days=1)