php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #6305 when string contains "at", wrong time returned
Submitted: 2000-08-22 22:21 UTC Modified: 2005-08-11 18:18 UTC
From: elkan at cs dot ucsd dot edu Assigned: derick (profile)
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.0.1pl2 OS: linux
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: elkan at cs dot ucsd dot edu
New email:
PHP Version: OS:

 

 [2000-08-22 22:21 UTC] elkan at cs dot ucsd dot edu
When given this date:
	Tuesday, 22 Aug 2000 at 5:06 PM EDT
strtotime returns
	2000-08-22 15:06:00
i.e. 5pm is converted to 15:00, which is 3pm.

This does not appear to be a time zone problem.
strtotime works correctly when " at" is deleted from the input string.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-25 13:12 UTC] sniper@php.net
See #5401.

--Jani
 [2000-08-27 06:45 UTC] stas@php.net
Well, I see no relation here to #5401...
The problem seems to be that "at" is seen as "Azores timezone", not as time delimiter...
 [2000-08-27 11:58 UTC] sniper@php.net
Oops. Typo. It should have read #5041..

--Jani


 [2005-08-11 17:47 UTC] nlopess@php.net
This still happens in PHP 5.1, but I'm not sure if it is fixable.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC