From e9905a684b0a07d36e12983a9317aae1a471ef11 Mon Sep 17 00:00:00 2001 From: Rene Enriquez Date: Wed, 9 Dec 2020 16:29:11 -0500 Subject: [PATCH] fix clock out time --- AutomaticClockOuts/time_entry.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AutomaticClockOuts/time_entry.js b/AutomaticClockOuts/time_entry.js index ec6d53f..871a8ae 100644 --- a/AutomaticClockOuts/time_entry.js +++ b/AutomaticClockOuts/time_entry.js @@ -11,8 +11,7 @@ class TimeEntry { } getTimeToClockOut() { - return moment(this.timeEntry.start_date).utc() - .add(this.timeEntry.timezone_offset, 'minutes').toISOString() + return moment().utc().subtract(this.timeEntry.timezone_offset, 'minutes').toISOString(); } needsToBeClockedOut() {