Set the default system timezone, otherwise, at the missing of this setting in php...
authorcindy li <cli@ocad.ca>
Tue, 9 Aug 2011 15:51:33 +0000 (15:51 -0000)
committercindy li <cli@ocad.ca>
Tue, 9 Aug 2011 15:51:33 +0000 (15:51 -0000)
docs/install/include/common.inc.php

index f7724ce..53e44b3 100644 (file)
@@ -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' : '');