From:  pear-qa@lists.php.net ("flintweather@gmail.com")
Date:  19 Sep 2018 05:24:50 Hong Kong Time
Newsgroup:  news.php.net/php.pear.bugs
Subject:  

[PEAR-BUG] Bug #15478 [Com]: BC break - new Date(time()) doesn't work

NNTP-Posting-Host:  null

Edit report at https://pear.php.net/bugs/bug.php?id=15478&edit=1

 ID:               15478
 Comment by:       flintweather at gmail dot com
 Reported By:      daniel dot oconnor at gmail dot com
 Summary:          BC break - new Date(time()) doesn't work
 Status:           Duplicate
 Type:             Bug
 Package:          Date
 Package Version:  CVS
 PHP Version:      5.2.6
 Roadmap Versions: 
 New Comment:

Bug #14413 patched.


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

[2009-01-01 03:49:02] doconnor

Bug #14413

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

[2009-01-01 03:45:54] gauthierm

This is a dupe of Bug #14413.

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

[2009-01-01 03:42:18] doconnor

Test:
getTime());

Expected:
2009-01-01 0:00:00

Actual:
1999-11-30 01:00:00

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

[2009-01-01 03:37:31] doconnor

Description:
------------
Its no longer possible to create a new Date() and pass in a timestamp.
Instead, setFromTime() must be used.

This is a BC break from 1.4.X

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


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=15478&edit=1