-
Type: Task
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: 1.1.2
-
Component/s: None
-
None
-
Environment:Windows server 2008
IIS 7.5
PHP 5.6 x86
php_mongodb-1.1.2-5.6-nts-vc11-x86
Hi
I am unable to get it work, gives wrong date back!?
$utcdatetime = new MongoDB\BSON\UTCDateTime(1416445411987);
$datetime = $utcdatetime->toDateTime();
var_dump($datetime->format(DATE_RSS));
Should give
string(31) "Thu, 20 Nov 2014 01:03:31 +0000"
But gives
string(31) "Sun, 21 Dec 1969 15:43:25 +0000"
Ref: http://php.net/manual/en/mongodb-bson-utcdatetime.todatetime.php
- related to
-
PHPC-553 Suppress PHP warnings during stream init
- Closed
- links to