We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c33434 commit e9905a6Copy full SHA for e9905a6
AutomaticClockOuts/time_entry.js
@@ -11,8 +11,7 @@ class TimeEntry {
11
}
12
13
getTimeToClockOut() {
14
- return moment(this.timeEntry.start_date).utc()
15
- .add(this.timeEntry.timezone_offset, 'minutes').toISOString()
+ return moment().utc().subtract(this.timeEntry.timezone_offset, 'minutes').toISOString();
16
17
18
needsToBeClockedOut() {
0 commit comments