cvs: pear /Date Date.php

From: Date: Sun, 02 Oct 2005 14:47:40 +0000
Subject: cvs: pear /Date Date.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35219@lists.php.net to get a copy of this message
pajoye Sun Oct 2 10:47:40 2005 EDT Modified files: /pear/Date Date.php Log: - #4878, %s padding fix when < 10 ( aashley at optimiser dot com) http://cvs.php.net/diff.php/pear/Date/Date.php?r1=1.33&r2=1.34&ty=u Index: pear/Date/Date.php diff -u pear/Date/Date.php:1.33 pear/Date/Date.php:1.34 --- pear/Date/Date.php:1.33 Sun Oct 2 10:06:59 2005 +++ pear/Date/Date.php Sun Oct 2 10:47:34 2005 @@ -23,7 +23,7 @@ * @author Pierre-Alain Joye <pajoye@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/2_02.txt PHP License - * @version CVS: $Id: Date.php,v 1.33 2005/10/02 14:06:59 pajoye Exp $ + * @version CVS: $Id: Date.php,v 1.34 2005/10/02 14:47:34 pajoye Exp $ * @link http://pear.php.net/package/Date */ @@ -410,7 +410,7 @@ $output .= sprintf("%02d:%02d", $this->hour, $this->minute); break; case "s": - $output .= str_replace(',', '.', sprintf("%02f", (float)((float)$this->second + $this->partsecond))); + $output .= str_replace(',', '.', sprintf("%09f", (float)((float)$this->second + $this->partsecond))); break; case "S": $output .= sprintf("%02d", $this->second);

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