php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25592 Get wrong timezone and time
Submitted: 2003-09-18 10:54 UTC Modified: 2003-09-18 23:17 UTC
From: pennington at rhodes dot edu Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 4.3.3 OS: Windows NT SP6a
Private report: No CVE-ID: None
 [2003-09-18 10:54 UTC] pennington at rhodes dot edu
Description:
------------
For some reason, the reported time when I execute a date() command changes. When I shutdown the IIS service and start it up, it will report (for a while) the correct time, date, and timezone from the time set on the Windows server. However, after some time has passed (and this may be related to traffic on the server), the server will start reporting UTC time and the "BST" timezone. Only the hour and timezone entries change (the minutes and everything else stays in sync with the Windows server).

I am using Tikiwiki with this server and I thought the problemw was related to the timezone.php class issues that I found details about in bugs.php.net, but since the time does report back (for a while, anyway) correctly when I am not going through Tikiwiki, I don't think that Tikiwiki is related at all. To that end, I've created a page to show the time information:

https://connect.rhodes.edu/test/timezone.php

Note that the time that is being reported is GMT (5 hours in advance of us in CST). Also note the "BST" timezone.

Reproduce code:
---------------
echo "Date from Server via date - D M j G:i:s T Y - : ".date("D M j G:i:s T Y");

Expected result:
----------------
Date from Server via date - D M j G:i:s T Y - : Thu Sep 18 09:54:56 CST 2003

Actual result:
--------------
Date from Server via date - D M j G:i:s T Y - : Thu Sep 18 14:54:56 BST 2003

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-18 23:17 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

see bug #23467
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 10:01:32 2024 UTC