Commit acd8af47 authored by alexpott's avatar alexpott

Issue #1055150 by rootwork, Devin Carlson, yoroy, brianV, JimmyAx: Time zone...

Issue #1055150 by rootwork, Devin Carlson, yoroy, brianV, JimmyAx: Time zone description is confusing on user register form
parent 689797a6
......@@ -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'));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment