1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11031] Convert timezones to new 3.1 timezone

PHPBB3-11031
This commit is contained in:
Joas Schilling
2013-10-28 21:54:43 +01:00
parent 157de2d80d
commit 88f72bd411
2 changed files with 9 additions and 2 deletions

View File

@@ -1926,3 +1926,10 @@ function phpbb_check_username_collisions()
$drop_sql = 'DROP TABLE ' . USERCONV_TABLE;
$db->sql_query($drop_sql);
}
function phpbb_convert_timezone($timezone)
{
global $config, $db, $phpbb_root_path, $phpEx, $table_prefix;
$timezone_migration = new \phpbb\db\migration\data\v310\timezone($config, $db, new \phpbb\db\tools($db), $phpbb_root_path, $phpEx, $table_prefix);
return $timezone_migration->convert_phpbb30_timezone($timezone, 0);
}