php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16908 some date functions appear to not be getting the correct timestamp from the OS
Submitted: 2002-04-29 11:55 UTC Modified: 2002-04-29 21:18 UTC
From: mfoxx at hotmail dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.1.1 OS: Linux (RedHat 7.1)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mfoxx at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-04-29 11:55 UTC] mfoxx at hotmail dot com
I actually have 4.1.1 installed... and the timestamp on my system IS correct...

So far, I have tested several of the date/time functions and they appear to return the correct info.  However, when I run phpinfo.php, it reports the wrong date and time, different than the timestamp on my server.  I've also noticed that a few plugin php services (and some CGI scripts), like news scripts and message boards, (I have not examined the code THOUROUGHLY) appear to also be getting their info from the same place that phpinfo is getting it.  Since I don't know how phpinfo is getting this, and it is clearly not using the same functions for date/time as I am using, I don't know what's wrong.  Could someone please look into this?  I really would appreciate some suggestions on how to proceed in finding and fixing this bug.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-29 17:53 UTC] sniper@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


 [2002-04-29 21:18 UTC] mfoxx at hotmail dot com
You all are no help.  If I thought this was a support issue, I wouldn't have turned to you.  But I've scoured the internet looking for some explanation as to why phpinfo() is not getting the right date.  Noone seems to know.  So, why don't you do something helpful and tell me why?  I didn't write phpinfo(), the writers of PHP did.  so tell me why its wrong?  its certainly not something wrong with my server, i have the RIGHT timestamp.
 [2002-04-29 21:20 UTC] mfoxx at hotmail dot com
don't you think it qualifies as a bug of some sort that some of the PHP functions return the right date as reported by the OS, and some, like the ones phpinfo() uses, do not?
 [2002-04-29 22:02 UTC] preston dot bannister at cox dot net
The only date I see coming out of phpinfo() is the "Build Date" and this accurately represents the date when the PHP executable was built.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC