Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e0a67c1c
Commit
e0a67c1c
authored
Nov 19, 2009
by
webchick
Browse files
#636666
by c960657: Don't auto-detect timezones after a failed submit.
parent
ff1c072b
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.module
View file @
e0a67c1c
...
...
@@ -1795,7 +1795,7 @@ function system_user_timezone(&$form, &$form_state) {
'#options'
=>
system_time_zones
(
$account
->
uid
!=
$user
->
uid
),
'#description'
=>
t
(
'Select the desired local time and time zone. Dates and times throughout this site will be displayed using this time zone.'
),
);
if
(
!
isset
(
$account
->
timezone
)
&&
$account
->
uid
==
$user
->
uid
)
{
if
(
!
isset
(
$account
->
timezone
)
&&
$account
->
uid
==
$user
->
uid
&&
empty
(
$form_state
[
'input'
][
'timezone'
])
)
{
$form
[
'timezone'
][
'#description'
]
=
t
(
'Your time zone setting will be automatically detected if possible. Please confirm the selection and click save.'
);
$form
[
'timezone'
][
'timezone'
][
'#attributes'
]
=
array
(
'class'
=>
array
(
'timezone-detect'
));
drupal_add_js
(
'misc/timezone.js'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment