Skip to content

Commit

Permalink
oops. I goofed with Issue #86. Restored.
Browse files Browse the repository at this point in the history
  • Loading branch information
tareko committed Feb 9, 2013
1 parent cebfd38 commit 99efd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/View/Helper/DatePickerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function(json) {
function shiftsWorking(date) {
for (i = 0; i < shiftDays.shiftList.length; i++) {
dateDB = new Date(Date.UTC.apply(Date, shiftDays.shiftList[i].Shift.date.split('-').map(function (d, i) { return parseInt(d, 10) - (i === 1 ? 1 : 0); })));
dateDB.setDate (dateDB.getDate());
dateDB.setDate (dateDB.getDate()+1);
if (date.getYear() == dateDB.getYear()
&& date.getMonth() == dateDB.getMonth()
&& date.getDate() == dateDB.getDate()) {
Expand Down

0 comments on commit 99efd78

Please sign in to comment.