Issue #1055150 by rootwork, Devin Carlson, yoroy, brianV, JimmyAx: Time zone description is confusing on user register form

8.0.x
Alex Pott 2014-12-05 13:49:29 +00:00
parent 689797a6bd
commit acd8af476d
1 changed files with 0 additions and 1 deletions

View File

@ -733,7 +733,6 @@ function system_user_timezone(&$form, FormStateInterface $form_state) {
);
$user_input = $form_state->getUserInput();
if (!$account->getTimezone() && $account->id() == $user->id() && empty($user_input['timezone'])) {
$form['timezone']['#description'] = t('Your time zone setting will be automatically detected if possible. Confirm the selection and click save.');
$form['timezone']['#attached']['library'][] = 'core/drupal.timezone';
$form['timezone']['timezone']['#attributes'] = array('class' => array('timezone-detect'));
}