projects
/
atutor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
836abfe
)
Set the default system timezone, otherwise, at the missing of this setting in php...
author
cindy li
<cli@ocad.ca>
Tue, 9 Aug 2011 15:51:33 +0000
(15:51 -0000)
committer
cindy li
<cli@ocad.ca>
Tue, 9 Aug 2011 15:51:33 +0000
(15:51 -0000)
docs/install/include/common.inc.php
patch
|
blob
|
history
diff --git
a/docs/install/include/common.inc.php
b/docs/install/include/common.inc.php
index
f7724ce
..
53e44b3
100644
(file)
--- a/
docs/install/include/common.inc.php
+++ b/
docs/install/include/common.inc.php
@@
-3,6
+3,9
@@
if (!defined('AT_INCLUDE_PATH')) { exit; }
error_reporting(E_ALL ^ E_NOTICE);
@set_time_limit(0);
+// set the default timezone to avoid the warning of "cannot rely on system timezone"
+@date_default_timezone_set(@date_default_timezone_get());
+
/* atutor default configuration options */
/* used on: ustep1.php, step3.php, step5.php */
$_defaults['admin_username'] = ($_POST['old_path'] ? 'admin' : '');