mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[feature/new-tz-handling] Remove "timezone might be numeric"
As we updated all of the used values, there really shouldn't be one anymore. PHPBB3-9558
This commit is contained in:
parent
8078a04f3a
commit
515e1662a9
@ -916,11 +916,6 @@ class acp_board
|
|||||||
|
|
||||||
// Let the format_date function operate with the acp values
|
// Let the format_date function operate with the acp values
|
||||||
$old_tz = $user->tz;
|
$old_tz = $user->tz;
|
||||||
if (is_numeric($config['board_timezone']))
|
|
||||||
{
|
|
||||||
// Might still be numeric
|
|
||||||
$config['board_timezone'] = sprintf('Etc/GMT%+d', $config['board_timezone']);
|
|
||||||
}
|
|
||||||
$user->tz = new DateTimeZone($config['board_timezone']);
|
$user->tz = new DateTimeZone($config['board_timezone']);
|
||||||
|
|
||||||
$dateformat_options = '';
|
$dateformat_options = '';
|
||||||
|
@ -127,12 +127,6 @@ class phpbb_user extends phpbb_session
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_numeric($user_timezone))
|
|
||||||
{
|
|
||||||
// Might still be numeric
|
|
||||||
$user_timezone = sprintf('Etc/GMT%+d', $user_timezone);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->tz = new DateTimeZone($user_timezone);
|
$this->tz = new DateTimeZone($user_timezone);
|
||||||
|
|
||||||
// We include common language file here to not load it every time a custom language file is included
|
// We include common language file here to not load it every time a custom language file is included
|
||||||
|
Loading…
x
Reference in New Issue
Block a user