mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 19:02:14 +09:00
Port all time-related functions to new timezone handling system
This commit is contained in:
parent
d5ba13d7e1
commit
c27da2ed24
5 changed files with 68 additions and 34 deletions
|
|
@ -257,7 +257,7 @@ class Config
|
|||
$config['locale']['enabled_lang'] = array_values($lang_selected);
|
||||
|
||||
// Convert timezone configuration.
|
||||
$old_timezone = get_time_zone_offset($db_info->time_zone ?: '+0900');
|
||||
$old_timezone = DateTime::getTimezoneOffsetByLegacyFormat($db_info->time_zone ?: '+0900');
|
||||
switch ($old_timezone)
|
||||
{
|
||||
case 32400:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue