e929e800b5
This was a pretty bad import into open source :( https://travis-ci.org/facebook/hiphop-php/builds/8251282 * date tests assumed PDT. I tried putting `date_default_timezone_set("America/Los_Angeles");`. Lets see if that helps. * options test checked for `phpmcc` which is only a facebook thing * I'm not sure what is wrong with hash or network, but their output totally masks the real value. Made the tests output their value so I can at least test in prod.
8 linhas
184 B
PHP
8 linhas
184 B
PHP
<?php
|
|
|
|
date_default_timezone_set("America/Los_Angeles");
|
|
|
|
$dt = date_create("@1170288001");
|
|
var_dump(date_format($dt, "Y-m-d\\TH:i:s\\Z"));
|
|
var_dump(date_format($dt, "Y-m-d H:i:sZ"));
|