mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/new-tz-handling] Fix selecting and validating of timezone in UCP
PHPBB3-9558
This commit is contained in:
@@ -41,7 +41,7 @@ class ucp_prefs
|
||||
'dateformat' => request_var('dateformat', $user->data['user_dateformat'], true),
|
||||
'lang' => basename(request_var('lang', $user->data['user_lang'])),
|
||||
'style' => request_var('style', (int) $user->data['user_style']),
|
||||
'tz' => request_var('tz', (float) $user->data['user_timezone']),
|
||||
'tz' => request_var('tz', $user->data['user_timezone']),
|
||||
|
||||
'dst' => request_var('dst', (bool) $user->data['user_dst']),
|
||||
'viewemail' => request_var('viewemail', (bool) $user->data['user_allow_viewemail']),
|
||||
@@ -72,7 +72,7 @@ class ucp_prefs
|
||||
$error = validate_data($data, array(
|
||||
'dateformat' => array('string', false, 1, 30),
|
||||
'lang' => array('language_iso_name'),
|
||||
'tz' => array('num', false, -14, 14),
|
||||
'tz' => array('timezone'),
|
||||
));
|
||||
|
||||
if (!check_form_key('ucp_prefs_personal'))
|
||||
|
Reference in New Issue
Block a user