Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
180f2b99
Commit
180f2b99
authored
Sep 12, 2012
by
tbrehm
Browse files
Fixed: FS#2418 - PHP: Timezone ID 'CEST' is invalid
parent
41a74e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/install.php
View file @
180f2b99
...
...
@@ -105,9 +105,15 @@ $inst->find_installed_apps();
//** Select the language and set default timezone
$conf
[
'language'
]
=
$inst
->
simple_query
(
'Select language'
,
array
(
'en'
,
'de'
),
'en'
);
exec
(
'date +%Z'
,
$tmp_out
);
$conf
[
'timezone'
]
=
$tmp_out
[
0
];
exec
(
'date +%z'
,
$tmp_out
);
$tmp_zone
=
intval
(
$tmp_out
[
0
]);
if
(
substr
(
$tmp_out
[
0
],
0
,
1
)
==
'+'
)
{
$conf
[
'timezone'
]
=
'Etc/GMT+'
.
$tmp_zone
;
}
else
{
$conf
[
'timezone'
]
=
'Etc/GMT-'
.
$tmp_zone
;
}
unset
(
$tmp_out
);
unset
(
$tmp_zone
);
//* Set defaukt theme
$conf
[
'theme'
]
=
'default'
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment