cvs: pear /Date Date.php

From: Date: Sun, 02 Oct 2005 13:59:57 +0000
Subject: cvs: pear /Date Date.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35217@lists.php.net to get a copy of this message
pajoye Sun Oct 2 09:59:57 2005 EDT Modified files: /pear/Date Date.php Log: - #5494, force dot as decimal separator ugly but faster than changing the locale http://cvs.php.net/diff.php/pear/Date/Date.php?r1=1.31&r2=1.32&ty=u Index: pear/Date/Date.php diff -u pear/Date/Date.php:1.31 pear/Date/Date.php:1.32 --- pear/Date/Date.php:1.31 Sun Oct 2 09:45:27 2005 +++ pear/Date/Date.php Sun Oct 2 09:59:55 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.31 2005/10/02 13:45:27 pajoye Exp $ + * @version CVS: $Id: Date.php,v 1.32 2005/10/02 13:59:55 pajoye Exp $ * @link http://pear.php.net/package/Date */ @@ -402,7 +402,7 @@ $output .= sprintf("%02d:%02d", $this->hour, $this->minute); break; case "s": - $output .= sprintf("%02f", (float)((float)$this->second + $this->partsecond)); + $output .= str_replace(',', '.', sprintf("%02f", (float)((float)$this->second + $this->partsecond))); break; case "S": $output .= sprintf("%02d", $this->second);

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