Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
696af944
Commit
696af944
authored
Mar 11, 2014
by
Marius Cramer
Browse files
Fix for installer timezone detection (Marc Schütz)
parent
7ae7e8f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/install.lib.php
View file @
696af944
...
...
@@ -812,6 +812,7 @@ function get_system_timezone() {
if
(
!
$timezone
&&
is_link
(
'/etc/localtime'
))
{
$timezone
=
readlink
(
'/etc/localtime'
);
$timezone
=
str_replace
(
'/usr/share/zoneinfo/'
,
''
,
$timezone
);
$timezone
=
str_replace
(
'..'
,
''
,
$timezone
);
if
(
substr
(
$timezone
,
0
,
6
)
===
'posix/'
)
$timezone
=
substr
(
$timezone
,
6
);
}
elseif
(
!
$timezone
)
{
$hash
=
md5_file
(
'/etc/localtime'
);
...
...
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