summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/helpers/date_helper.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/helpers/date_helper.php b/system/helpers/date_helper.php
index 7ff7444e5..14d973f65 100644
--- a/system/helpers/date_helper.php
+++ b/system/helpers/date_helper.php
@@ -53,7 +53,9 @@ if ( ! function_exists('now'))
$CI =& get_instance();
if (is_null($timezone))
+ {
$timezone = $CI->config->item('timezone');
+ }
$timezone = new DateTimeZone($timezone);
$now = new DateTime('now', $timezone);