php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37420 strtotime('at') returns current date at 8pm.
Submitted: 2006-05-12 17:36 UTC Modified: 2007-08-17 21:51 UTC
From: jb243 at telus dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
 [2006-05-12 17:36 UTC] jb243 at telus dot net
Description:
------------
strtotime('at') returns today at current hour or maybe 8pm.  Should be documented as a feature or return an invalid timestamp.

echo date("r",strtotime('At'));

Reproduce code:
---------------
echo date("r",strtotime('At'));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-13 07:48 UTC] derick@php.net
It's not a bug "At" (in any spelling) is the timezone identifier for "Azores Time". We need to document the full range of supported syntax though (also for PHP 5.x).
 [2006-05-13 15:11 UTC] jb243 at telus dot net
Thanks for your help.  Sorry for thinking so locally.  Maybe there can be an option for more strict parsing that so that 'now MST', 'now EST', 'now AT' would be valid, but just MST or AT on its own would not.   Just a thought.
Jeff.
 [2006-05-13 16:54 UTC] derick@php.net
Keep it open please, it's still a documentation "problem".
 [2007-08-17 21:51 UTC] vrana@php.net
Supported timezones documented in appendix.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 21:00:03 2025 UTC