summaryrefslogtreecommitdiffstats
path: root/system/helpers/date_helper.php
diff options
context:
space:
mode:
authorIban Eguia <admin@razican.com>2012-03-27 18:51:52 +0200
committerIban Eguia <admin@razican.com>2012-03-27 18:51:52 +0200
commit16760bb0d812b951564bd1742af6e622490ca05c (patch)
tree0ebff68f0972903e74f45c70e42d0ec03e0f5bde /system/helpers/date_helper.php
parent91a13199292d8b4495e6ecbcb6a5fea1294cd2da (diff)
Added braces as requested.
Diffstat (limited to 'system/helpers/date_helper.php')
-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);