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() {