-install now uses default PHP timezone

This commit is contained in:
martin 2011-08-18 15:44:49 -04:00
parent dd9ef5b9c8
commit 99d2872566
2 changed files with 6 additions and 2 deletions

View file

@ -298,7 +298,9 @@ class AirtimeInstall
{ {
global $CC_DBC; global $CC_DBC;
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('timezone', 'America/Toronto')"; $defaultTimezone = date_default_timezone_get();
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('timezone', '$defaultTimezone')";
$result = $CC_DBC->query($sql); $result = $CC_DBC->query($sql);
if (PEAR::isError($result)) { if (PEAR::isError($result)) {
return false; return false;

View file

@ -21,7 +21,9 @@ class AirtimeInstall{
{ {
global $CC_DBC; global $CC_DBC;
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('timezone', 'America/Toronto')"; $defaultTimezone = date_default_timezone_get();
$sql = "INSERT INTO cc_pref (keystr, valstr) VALUES ('timezone', '$defaultTimezone')";
$result = $CC_DBC->query($sql); $result = $CC_DBC->query($sql);
if (PEAR::isError($result)) { if (PEAR::isError($result)) {
return false; return false;