summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r--system/libraries/Email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index d8ab47281..4cd930892 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -602,7 +602,7 @@ class CI_Email {
$timezone = date("Z");
$operator = (substr($timezone, 0, 1) == '-') ? '-' : '+';
$timezone = abs($timezone);
- $timezone = ($timezone/3600) * 100 + ($timezone % 3600) /60;
+ $timezone = floor($timezone/3600) * 100 + ($timezone % 3600 ) / 60;
return sprintf("%s %s%04d", date("D, j M Y H:i:s"), $operator, $timezone);
}