Skip to content

Commit

Permalink
fix offset pointer for week of day: respect difference in day of week…
Browse files Browse the repository at this point in the history
… count 0-6 versus 1-7
  • Loading branch information
CybotTM committed Apr 6, 2017
1 parent 5e64a31 commit 8390937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data.php
Expand Up @@ -165,7 +165,7 @@
$days[$date] = array(
'date' => $date,
'dow' => (int) date('N', $ts),
'required' => $arWorkWeek[$weekDay],
'required' => $arWorkWeek[($weekDay == 7 ? 0 : $weekDay)],
'worked' => 0.0,
'holiday' => isset($holidays[$date]),
'future' => $date > $today,
Expand Down

0 comments on commit 8390937

Please sign in to comment.