From aa14a1586a85bf78b7d30a1085361fff1cd36c71 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 26 Nov 2006 01:14:11 +0000 Subject: [PATCH] Fixing the ISSO/Date framework because it failed the unit test. --- date.php | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/date.php b/date.php index 0288f9f..17b65f8 100644 --- a/date.php +++ b/date.php @@ -45,44 +45,11 @@ define('TIMENOW', time()); */ class BSDate { - /** - * Framework registry object - * @var object - */ - private $registry = null; - - /** - * User timezone offset - * @var float - */ - private $usertz = 0; - - /** - * The server's timezone offset - * @var float - */ - private $servertz; - - /** - * Total offset timezone; this is set using fetch_offset() - * @var float - */ - private $offsettz = 0; - /** * Offset in seconds; this is set using fetch_offset() * @var integer */ private $offset = 0; - - // ################################################################### - /** - * Constructor: sets the server's timezone - */ - public function __construct() - { - $this->servertz = date('Z', TIMENOW) / 3600; - } // ################################################################### /** @@ -92,9 +59,7 @@ class BSDate */ public function setUserTimeZone($usertz) { - $this->usertz = $usertz; - $this->offsettz = $this->usertz - $this->servertz; - $this->offset = $this->offsettz * 3600; + $this->offset = $usertz * 3600; } // ################################################################### -- 2.22.5