Skip to content

Commit

Permalink
Merge pull request #102 from ronaldklop/master
Browse files Browse the repository at this point in the history
Fix the calculation of the quarter of the year.
  • Loading branch information
dlangille authored Nov 6, 2018
2 parents 179ead1 + 352cb34 commit e2cdd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/backend/news.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$BranchName = BRANCH_HEAD;
}
if ($BranchName === 'quarterly') {
$BranchName = date('Y') . 'Q' . (floor(date('n') / 4) + 1);
$BranchName = date('Y') . 'Q' . (floor((date('n') - 1) / 3) + 1);
}

$Flavor = '';
Expand Down

0 comments on commit e2cdd1e

Please sign in to comment.