php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21050 strtotime & time zones
Submitted: 2002-12-16 11:32 UTC Modified: 2003-01-02 18:50 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: peter at mediapoland dot com Assigned:
Status: No Feedback Package: Date/time related
PHP Version: 4.2.2 OS: Linux webdev 2.4.19
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
6 + 44 = ?
Subscribe to this entry?

 
 [2002-12-16 11:32 UTC] peter at mediapoland dot com
Function 'strtotime' will produce 24 hour offset when prasing timezone item.

echo (strtotime(GMT, 0)); //-86400 on Linux, 0 on win2k.
echo (strtotime(CST, 0)); //-64800 on Linux, 21600 on win2k

Peter
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-16 13:06 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2003-01-02 18:50 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-04-11 03:40 UTC] jonco at iol dot ie
Using strtotime("last friday") produced a 24-hr offset on change form GMT to Summer Time, ie returned last thursday.

john
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC