Update date parameters and simplify broadcast call
This commit is contained in:
+2
-2
@@ -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' }
|
||||
|
||||
Reference in New Issue
Block a user