zhamao-framework/src/ZM/Bootstrap/SetInternalTimezone.php

16 lines
269 B
PHP
Raw Normal View History

2022-11-08 17:28:07 +08:00
<?php
2022-11-08 17:33:25 +08:00
declare(strict_types=1);
2022-11-08 17:28:07 +08:00
namespace ZM\Bootstrap;
2023-02-24 16:49:24 +08:00
use ZM\Kernel;
class SetInternalTimezone implements Bootstrapper
2022-11-08 17:28:07 +08:00
{
2023-02-24 16:49:24 +08:00
public function bootstrap(Kernel $kernel): void
2022-11-08 17:28:07 +08:00
{
date_default_timezone_set(config('global.runtime.timezone', 'UTC'));
}
}