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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nicke at hallgrens dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-17 17:33 UTC] nicke at hallgrens dot org
m = month  SORRY
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 09:01:30 2025 UTC