Skip to content

Commit

Permalink
Fixed: rewriting date
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGalek committed Apr 18, 2018
1 parent d433b95 commit fef1221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Galek/Utils/Calendar/Business/Shipper.php
Expand Up @@ -89,7 +89,7 @@ public function setCurrentDate(Calendar $date = null): void

public function getDate(): Calendar
{
$date = $this->getCurrentDate();
$date = clone $this->getCurrentDate();

if (Day::isWork($this->configuration->getHolidays(), $date)) {
if (Time::over($date, $this->hour, $this->minute)) {
Expand Down

0 comments on commit fef1221

Please sign in to comment.