Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 0239aa4

Browse files
committedOct 21, 2018
Fix.
1 parent a23809e commit 0239aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Traits/Reports.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getHoursLoggedFor($startDate, $endDate, $project = null, $branch
3131
public function getHoursLoggedForLast($period, $project = null, $branches = null)
3232
{
3333
$endDate = date('m/d/Y');
34-
$startDate = date_format(date_sub(date_create($todayDate), date_interval_create_from_date_string($period)), 'm/d/Y');
34+
$startDate = date_format(date_sub(date_create($endDate), date_interval_create_from_date_string($period)), 'm/d/Y');
3535

3636
return $this->getHoursLoggedFor($startDate, $endDate, $project, $branches);
3737
}

0 commit comments

Comments
 (0)
This repository has been archived.