summaryrefslogtreecommitdiffstats
path: root/system/libraries/Email.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-11-14 19:41:29 +0100
committerDerek Allard <derek.allard@ellislab.com>2007-11-14 19:41:29 +0100
commit582e9f8eea096744d530f32854f5ef30759b577e (patch)
tree15fdad52c0ab72094e492fc76725f5edfa28161a /system/libraries/Email.php
parent55c7c58228c7f8af46f2dfe244cc3ef4eb5cd962 (diff)
Fixed a bug in the Email library where some timezones were calculated incorrectly.
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);
}