Update date parameters and simplify broadcast call

This commit is contained in:
2024-02-04 19:43:43 +00:00
parent af3f2ca39d
commit 39554fb176
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ module Toggl
"#{TOGGL_PORTAL_URL}/report",
body: {
# TODO: Replace these, rails keeps complaining about deprecations
"start_date": start_time.to_date.to_fs(),
"end_date": end_time.to_date.to_fs(),
"start_date": start_time.to_date.to_fs(:db),
"end_date": end_time.to_date.to_fs(:db),
"project_ids": [toggl_project_id]
}.to_json,
headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json' }