php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36951 system time problem
Submitted: 2006-04-02 16:29 UTC Modified: 2006-04-02 16:31 UTC
From: benny_22012771 at yahoo dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.2 OS: WINDOWS 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: benny_22012771 at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-04-02 16:29 UTC] benny_22012771 at yahoo dot com
Description:
------------
I'm using PHP 5.1.2, IIS, Mozilla Firefox 1.0.7
On my computer system showing the time is 11:36 PM (Friday, March 31 2006)
But when i running the following script:

Reproduce code:
---------------
<?php
$today = date("H:i:s; l, M d, Y");
echo "$today"; //$today is return 00:36:15; Saturday, Apr 01, 2006; another time function return the same value
//like strftime();
?>

Expected result:
----------------
it return the uncorrectly time (something 
like the converting from php is added more 3600 of microtime).

Actual result:
--------------
the actual result is same as system time, but it return the time uncorrectly.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-02 16:31 UTC] tony2001@php.net
Use date_default_timezone_set() or date.timezone INI directive to set correct default timezone.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Oct 26 06:00:02 2025 UTC