Skip to content

Commit

Permalink
fix: provide the date to Everhour when starting a timer
Browse files Browse the repository at this point in the history
Previously, the date was not provided, which led to Everhour using
picking the current date in the UTC timezone. Now the client date
will always be used.
  • Loading branch information
clamburger committed Dec 3, 2023
1 parent a61f241 commit 8b340f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Everhour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const api = {
},
timers: {
get: () => request('timers/current', 'GET'),
start: (task: string) => request('timers', 'POST', { task }),
start: (task: string) => request('timers', 'POST', { task, userDate: new Date().toISOString().substring(0, 10) }),
stop: () => request('timers/current', 'DELETE'),
},
};
Expand Down

0 comments on commit 8b340f9

Please sign in to comment.