cvs: pear /Date Date.php

From: Date: Fri, 03 Jan 2003 12:00:28 +0000
Subject: cvs: pear /Date Date.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8063@lists.php.net to get a copy of this message
mj Fri Jan 3 07:00:28 2003 EDT Modified files: /pear/Date Date.php Log: * Fix bug #21324. Index: pear/Date/Date.php diff -u pear/Date/Date.php:1.7 pear/Date/Date.php:1.8 --- pear/Date/Date.php:1.7 Tue Nov 12 13:11:10 2002 +++ pear/Date/Date.php Fri Jan 3 07:00:26 2003 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Date.php,v 1.7 2002/11/12 18:11:10 lsmith Exp $ +// $Id: Date.php,v 1.8 2003/01/03 12:00:26 mj Exp $ // // Date Class // @@ -532,6 +532,9 @@ list($this->year, $this->month, $this->day) = sscanf(Date_Calc::daysToDate($d), "%04s%02s%02s"); + $this->year = intval($this->year); + $this->month = intval($this->month); + $this->day = intval($this->day); } /** @@ -580,6 +583,9 @@ list($this->year, $this->month, $this->day) = sscanf(Date_Calc::daysToDate($d), "%04s%02s%02s"); + $this->year = intval($this->year); + $this->month = intval($this->month); + $this->day = intval($this->day); } /**

« previous php.pear.cvs (#8063) next »