php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37108 date command returns wrong output
Submitted: 2006-04-17 17:29 UTC Modified: 2006-04-17 17:33 UTC
From: nicke at hallgrens dot org Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.2 OS: WIN XP
Private report: No CVE-ID: None
 [2006-04-17 17:29 UTC] 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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-17 17:33 UTC] nicke at hallgrens dot org
m = month  SORRY
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 14:01:31 2024 UTC