php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40856 Problems with tijuana time zone
Submitted: 2007-03-19 17:45 UTC Modified: 2007-03-19 18:20 UTC
From: sergio dot santana at softtek dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.2.1 OS: Windows XP PRO
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: sergio dot santana at softtek dot com
New email:
PHP Version: OS:

 

 [2007-03-19 17:45 UTC] sergio dot santana at softtek dot com
Description:
------------
I have various scripts that work at 12am daily, but it seems that they are running now at 11pm (one hour before it shoud), i work with the GMT -8(tijuana) time zone, i use de date function and returns the date and time of the GMT -8(pacific) time zone, it is not a major problem now, but it could be in future appz this time difference in other places, thanks for reading my message.

Reproduce code:
---------------
//use the GMT-8(tijuana) time zone
//and compare the displayed time with the system time
echo date("d-m-y H:i:s");

Expected result:
----------------
get the same system and displayed time (variance of 1 hour now)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-19 18:05 UTC] derick@php.net
What does the following output:

<?php
echo date_default_timezone_get(), "\n";
?>
 [2007-03-19 18:09 UTC] sergio dot santana at softtek dot com
it says America/Los Angeles, my current system time zone is in tijuana, hope this information works
 [2007-03-19 18:20 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Then you need to configure PHP like it was in Tijanana:

date.timezone=America/Tijuana

in your php.ini
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 18:01:32 2024 UTC