From 582e9f8eea096744d530f32854f5ef30759b577e Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 14 Nov 2007 18:41:29 +0000 Subject: Fixed a bug in the Email library where some timezones were calculated incorrectly. --- system/libraries/Email.php | 2 +- user_guide/changelog.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); } diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 2cb6e7c09..206480aa1 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -73,6 +73,7 @@ Change Log
  • Documented unset_userdata in the Session class.
  • Changed the behaviour of custom callbacks so that they no longer trigger the "required" rule.
  • Added a few additional mime type variations for CSV.
  • +
  • Fixed a bug in the Email library where some timezones were calculated incorrectly.
  • Fixed a bug in Validation where valid_ip() wasn't called properly.
  • Fixed a bug in the Session library where user agent matching would fail on user agents ending with a space.
  • Fixed a bug in database driver where num_rows property wasn't getting updated.
  • -- cgit v1.2.3-24-g4f1b