Skip to content

Commit

Permalink
remove the old timestamp part in daterange
Browse files Browse the repository at this point in the history
  • Loading branch information
kokspflanze committed Nov 1, 2015
1 parent e7bd98f commit 8624307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PServerCMS/Helper/DateTimer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function getDateRange4Period( \DateTime $beginDate, \DateTime $end
if ($beginDate < $endDate) {
do {
$result[] = clone $beginDate;
$beginDate->setTimestamp($beginDate->getTimestamp()+60*60*24);
$beginDate->modify('+1 day');
} while ($beginDate <= $endDate);
}

Expand Down

0 comments on commit 8624307

Please sign in to comment.