Skip to content

Commit

Permalink
added closing days to be set for stores to inform customers that stor…
Browse files Browse the repository at this point in the history
…e is closed (#2685)
  • Loading branch information
TomasLudvik authored Aug 9, 2023
1 parent 1faa828 commit 6b0bd4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Component/Domain/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Shopsys\FrameworkBundle\Component\Domain;

use DateTimeZone;
use Shopsys\FormTypesBundle\Domain\DomainIdsProviderInterface;
use Shopsys\FrameworkBundle\Component\Domain\Config\DomainConfig;
use Shopsys\FrameworkBundle\Component\Domain\Exception\InvalidDomainIdException;
Expand Down Expand Up @@ -198,4 +199,12 @@ public function isMultidomain()
{
return count($this->getAll()) > 1;
}

/**
* @return \DateTimeZone
*/
public function getDateTimeZone(): DateTimeZone
{
return $this->getCurrentDomainConfig()->getDateTimeZone();
}
}

0 comments on commit 6b0bd4b

Please sign in to comment.