#36951 [Opn->Bgs]: system time problem

From: Date: Sun, 02 Apr 2006 14:31:52 +0000
Subject: #36951 [Opn->Bgs]: system time problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95216@lists.php.net to get a copy of this message
ID: 36951 Updated by: tony2001@php.net Reported By: benny_22012771 at yahoo dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: WINDOWS XP PHP Version: 5.1.2 New Comment: Use date_default_timezone_set() or date.timezone INI directive to set correct default timezone. Previous Comments: ------------------------------------------------------------------------ [2006-04-02 16:29:33] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36951&edit=1

« previous php.bugs (#95216) next »