fix timesheet collection fetch via API with end datetime set (#2552)

This commit is contained in:
Kevin Papst
2021-05-05 13:02:09 +02:00
committed by GitHub
parent 4fcd97b142
commit f10aad927f
3 changed files with 15 additions and 5 deletions

View File

@@ -59,13 +59,13 @@ class TimesheetQuery extends ActivityQuery implements BillableInterface
*/
private $users = [];
public function __construct()
public function __construct(bool $resetTimes = true)
{
parent::__construct();
$this->setDefaults([
'order' => self::ORDER_DESC,
'orderBy' => 'begin',
'dateRange' => new DateRange()
'dateRange' => new DateRange($resetTimes)
]);
}