From 24932a15bfca91e7a711d55554a811a32efd4113 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 21 May 2011 22:49:47 +1000 Subject: [PATCH] default timezone --- inc/config.php | 3 +++ inc/functions.php | 2 ++ 2 files changed, 5 insertions(+) diff --git a/inc/config.php b/inc/config.php index 7fa9da2d..12d5f609 100644 --- a/inc/config.php +++ b/inc/config.php @@ -588,6 +588,9 @@ // http://php.net/manual/en/function.date.php $config['post_date'] = 'm/d/y (D) H:i:s'; + // Timezone + $config['timezone'] = 'America/Los_Angeles'; + // Always act as if they had typed "noko" in the email field no mattter what $config['always_noko'] = false; diff --git a/inc/functions.php b/inc/functions.php index 231879fa..06674749 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -25,6 +25,8 @@ $debug['start'] = time(); } + date_default_timezone_set($config['timezone']); + if(!isset($config['url_stylesheet'])) $config['url_stylesheet'] = $config['root'] . 'style.css'; if(!isset($config['url_javascript']))