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

16 lines
291 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-03-07 23:07:52 +08:00
use ZM\HasRuntimeInfo;
2023-02-24 16:49:24 +08:00
class SetInternalTimezone implements Bootstrapper
2022-11-08 17:28:07 +08:00
{
2023-03-07 23:07:52 +08:00
public function bootstrap(HasRuntimeInfo $runtime_info): void
2022-11-08 17:28:07 +08:00
{
date_default_timezone_set(config('global.runtime.timezone', 'UTC'));
}
}