From 4c3814b204b834ddca5aefdc38acfca02cf55e3d Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 8 Sep 2017 10:53:16 +0200 Subject: [PATCH] Improved user.isOutOfOffice() if begin is today. --- app/assets/javascripts/app/models/user.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/app/models/user.coffee b/app/assets/javascripts/app/models/user.coffee index 7d357369c..fd93b1c62 100644 --- a/app/assets/javascripts/app/models/user.coffee +++ b/app/assets/javascripts/app/models/user.coffee @@ -119,6 +119,7 @@ class App.User extends App.Model start_time = new Date(Date.parse(start_time)) end_time = new Date(Date.parse(end_time)) now = new Date((new Date).toDateString()) + now.setDate(now.getDate() + 1) if start_time <= now && end_time >= now return true false