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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 19:01:30 2024 UTC