Bug #12617 Updated: make test fails on strtotime

From: Date: Mon, 22 Oct 2001 03:27:40 +0000
Subject: Bug #12617 Updated: make test fails on strtotime
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68677@lists.php.net to get a copy of this message
ID: 12617
Updated by: sniper
Reported By: james+php@squish.net
Old Status: Open
Status: Closed
Bug Type: Date/time related
Operating System: solaris
PHP Version: 4.0.6
New Comment:

Fixed in CVS.


Previous Comments:
------------------------------------------------------------------------

[2001-08-07 09:04:57] james+php@squish.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.


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12617&edit=1



Thread (2 messages)

« previous php.dev (#68677) next »