#37108 [Opn->Bgs]: date command returns wrong output

From: Date: Mon, 17 Apr 2006 17:33:06 +0000
Subject: #37108 [Opn->Bgs]: date command returns wrong output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95892@lists.php.net to get a copy of this message
ID: 37108 User updated by: nicke at hallgrens dot org Reported By: nicke at hallgrens dot org -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: WIN XP PHP Version: 5.1.2 New Comment: m = month SORRY Previous Comments: ------------------------------------------------------------------------ [2006-04-17 17:29:14] nicke at hallgrens dot org Description: ------------ command date("h:m:s") returns same minute over and over again. The hours changes right but minutes seems to just show 04. Same problem occures on PHP 4.4.0 on Linux. Reproduce code: --------------- date ("h:m:s"); Expected result: ---------------- correct time :) Actual result: -------------- C:\php>time The current time is: 20:25:11.04 Enter the new time: C:\php>php ttt.php 08:04:15 C:\php>php ttt.php 08:04:30 C:\php>php ttt.php 08:04:42 C:\php>php ttt.php 08:04:56 C:\php>php ttt.php 08:04:59 C:\php>php ttt.php 08:04:00 C:\php>php ttt.php 08:04:02 C:\php> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37108&edit=1

« previous php.bugs (#95892) next »