php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34292 Timezone setting
Submitted: 2005-08-29 00:51 UTC Modified: 2005-08-29 16:30 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: Admin at relax-info dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.1.0RC1 OS: Windows XP SP2
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: Admin at relax-info dot com
New email:
PHP Version: OS:

 

 [2005-08-29 00:51 UTC] Admin at relax-info dot com
Description:
------------
PHP don't give proper weigh Timezone setting of my machine. Difference to Greenwich time (GMT) in hours = 0

Reproduce code:
---------------
<?php
$timestamp = 1125267228;
print_r(date('r', $timestamp));
?>

Expected result:
----------------
Sun, 28 Aug 2005 01:44:05 +0200

Actual result:
--------------
Sun, 28 Aug 2005 22:44:05 +0000

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-29 00:55 UTC] Admin at relax-info dot com
Sorry,

Expected result:
----------------
Sun, 28 Aug 2005 01:44:05 +0300
 [2005-08-29 13:23 UTC] sniper@php.net
Have you set date.timezone php.ini setting correctly?
(what is it?)

 [2005-08-29 14:41 UTC] Admin at relax-info dot com
In configuration a file(php.ini-dist|php.ini-recommended) there is no configuration option - date.timezone therefore I established nothing.
It is impossible to take parameter timezone from a OS?
 [2005-08-29 16:30 UTC] sniper@php.net
When you have that set correctly, you'll get correct results. RTFM.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 02 03:01:30 2025 UTC