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
provision
Commits
09a4cc25
Commit
09a4cc25
authored
Aug 20, 2009
by
anarcat
Committed by
anarcat
Aug 20, 2009
Browse files
#550286
by mig5 - set default timezone in deployed sites
parent
a50d0598
Changes
2
Hide whitespace changes
Inline
Side-by-side
platform/drupal/install_5.inc
View file @
09a4cc25
...
...
@@ -181,6 +181,10 @@ function install_main() {
$profile_message
=
$function
();
}
// Get the timezone offset from system time
$tz_offset
=
date
(
'Z'
);
variable_set
(
'date_default_timezone'
,
$tz_offset
);
variable_set
(
'install_profile'
,
$profile
);
$account
=
install_create_admin_user
(
$url
,
$client_email
);
if
(
$client_email
)
{
...
...
platform/drupal/install_6.inc
View file @
09a4cc25
...
...
@@ -265,6 +265,10 @@ function install_main() {
variable_set
(
'clean_url'
,
TRUE
);
variable_set
(
'install_time'
,
time
());
// Get the timezone offset from system time
$tz_offset
=
date
(
'Z'
);
variable_set
(
'date_default_timezone'
,
$tz_offset
);
menu_rebuild
();
// profile task
...
...
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