php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1319 mktime() expects computer system time to be set to GMT
Submitted: 1999-04-15 22:13 UTC Modified: 1999-04-15 22:42 UTC
From: bigmike at bigmweb dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.6 OS: NT4.0 and Solaris 6.0
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: bigmike at bigmweb dot com
New email:
PHP Version: OS:

 

 [1999-04-15 22:13 UTC] bigmike at bigmweb dot com
See http://www.bigmweb.com/test/date2timestamp.php3 for an example and explanation. The computers that this example runs on(NT 4.0 -- PHP 3.0.6 -- address www.bigmweb.com...) and (Solaris 2.6 -- PHP 3.0.0 -- address www2.bigmweb.com...) are set to GMT -0500 (in Maryland, USA). This is exactly the amount of time that the function is off by. Source for the script is in "date2timestamp.phps" -- pretty on the UNIX box, plain on the NT box.

I don't have access to the php.ini or other info, but you can run the script http://www.bigmweb.com/test/php_info.php3 on either computer to get most of that info.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-15 22:42 UTC] rasmus
mktime() always produces a Unix timestamp.  Unix timestamps are timezone neutral.  There is not timezone associated with a Unix timestamp, the association is made when the timestamp is converted into a displayed date using the date() function.  There is no bug here.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 13:00:01 2026 UTC