php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12617 make test fails on strtotime
Submitted: 2001-08-07 09:04 UTC Modified: 2001-10-21 23:27 UTC
From: james+php at squish dot net Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.6 OS: solaris
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 !
Your email address:
MUST BE VALID
Solve the problem:
9 + 30 = ?
Subscribe to this entry?

 
 [2001-08-07 09:04 UTC] james+php at squish dot net
make test fails on the test ext/standard/tests/time/002.php.

002.out says:

1999-10-13
939769200
939769200

2000-01-19
948240000
948240000

2001-12-21
1008892800
1008892800

2001-12-21 12:16
1008936960
1008936960

Which are an hour out, my timezone is BST (1 hour from GMT).

Presumably this is a bug in the test script, since the source for strtotime() uses mktime() rather than timegm().  So I guess the person who wrote this test script was in GMT or you have changed strtotime to use local times since it was written.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-21 23:27 UTC] sniper@php.net
Fixed in CVS.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC