We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9a5aab commit e801de6Copy full SHA for e801de6
1 file changed
src/Manager/TimezoneManager.php
@@ -3,6 +3,7 @@
3
namespace SoureCode\Bundle\Timezone\Manager;
4
5
use DateTimeZone;
6
+use Symfony\Component\Clock\Clock;
7
use Symfony\Component\Clock\ClockInterface;
8
use Symfony\Component\Intl\Timezones;
9
use Twig\Environment;
@@ -37,7 +38,7 @@ public static function getInstance(): TimezoneManager
37
38
{
39
// in case of getting called from a command or messenger. (console)
40
if (!isset(self::$instance)) {
- new self();
41
+ new self([], Clock::get());
42
}
43
44
return self::$instance;
0 commit comments