Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduler-3369158
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
scheduler-3369158
Commits
0f31a11a
Commit
0f31a11a
authored
17 years ago
by
Andy Kirkham
Browse files
Options
Downloads
Patches
Plain Diff
#154169
by myself
parent
adc1b9da
Branches
hotfix/4.7.0
Branches containing commit
Tags
4.7.0
8.x-4.7
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scheduler.module
+17
-9
17 additions, 9 deletions
scheduler.module
with
17 additions
and
9 deletions
scheduler.module
+
17
−
9
View file @
0f31a11a
...
...
@@ -122,15 +122,23 @@ function scheduler_form_alter($form_id, &$form) {
);
//default to user timezone, if not specified, default to system wide timezone
global
$user
;
$zones
=
_system_zonelist
();
$form
[
'scheduler_settings'
][
'timezone'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Time zone'
),
'#default_value'
=>
$defaults
->
timezone
?
$defaults
->
timezone
:
(
strlen
(
$user
->
timezone
)
?
$user
->
timezone
:
variable_get
(
'date_default_timezone'
,
0
)),
'#options'
=>
$zones
,
'#description'
=>
t
(
'Select the time zone to (un)publish in.'
)
);
if
(
variable_get
(
'configurable_timezones'
,
1
)
==
1
)
{
global
$user
;
$zones
=
_system_zonelist
();
$form
[
'scheduler_settings'
][
'timezone'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Time zone'
),
'#default_value'
=>
$defaults
->
timezone
?
$defaults
->
timezone
:
(
strlen
(
$user
->
timezone
)
?
$user
->
timezone
:
variable_get
(
'date_default_timezone'
,
0
)),
'#options'
=>
$zones
,
'#description'
=>
t
(
'Select the time zone to (un)publish in.'
)
);
}
else
{
$form
[
'scheduler_settings'
][
'timezone'
]
=
array
(
'#type'
=>
'value'
,
'#value'
=>
$defaults
->
timezone
?
$defaults
->
timezone
:
(
strlen
(
$user
->
timezone
)
?
$user
->
timezone
:
variable_get
(
'date_default_timezone'
,
0
)),
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment