Skip to content

Commit e9905a6

Browse files
committed
fix clock out time
1 parent 8c33434 commit e9905a6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

AutomaticClockOuts/time_entry.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class TimeEntry {
1111
}
1212

1313
getTimeToClockOut() {
14-
return moment(this.timeEntry.start_date).utc()
15-
.add(this.timeEntry.timezone_offset, 'minutes').toISOString()
14+
return moment().utc().subtract(this.timeEntry.timezone_offset, 'minutes').toISOString();
1615
}
1716

1817
needsToBeClockedOut() {

0 commit comments

Comments
 (0)