fix timesheet collection fetch via API with end datetime set (#2552)
This commit is contained in:
@@ -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)
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user