Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
180f2b99
Commit
180f2b99
authored
Sep 12, 2012
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: FS#2418 - PHP: Timezone ID 'CEST' is invalid
parent
41a74e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
install/install.php
install/install.php
+8
-2
No files found.
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
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