diff --git a/src/Api/TimesheetApi.php b/src/Api/TimesheetApi.php index 23a8de3..2177e78 100644 --- a/src/Api/TimesheetApi.php +++ b/src/Api/TimesheetApi.php @@ -754,14 +754,14 @@ public function apiTimesheetsGetRequest($user = null, $customer = null, $custome $begin = ObjectSerializer::serializeCollection($begin, '', true); } if (null !== $begin) { - $queryParams['begin'] = $begin; + $queryParams['begin'] = ObjectSerializer::toString($begin); } // query params if (\is_array($end)) { $end = ObjectSerializer::serializeCollection($end, '', true); } if (null !== $end) { - $queryParams['end'] = $end; + $queryParams['end'] = ObjectSerializer::toString($end); } // query params if (\is_array($exported)) { @@ -796,7 +796,7 @@ public function apiTimesheetsGetRequest($user = null, $customer = null, $custome $modifiedAfter = ObjectSerializer::serializeCollection($modifiedAfter, '', true); } if (null !== $modifiedAfter) { - $queryParams['modified_after'] = $modifiedAfter; + $queryParams['modified_after'] = ObjectSerializer::toString($modifiedAfter); } if ($multipart) { diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index 95642b6..719b263 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -41,7 +41,7 @@ class ObjectSerializer { /** @var string */ - private static $dateTimeFormat = \DateTime::ATOM; + private static $dateTimeFormat = 'Y-m-d\TH:i:s'; /** * Change the date format.