Arquivos
hhvm/hphp/test/slow/ext_datetime/date_format.php
T
Paul Tarjan e929e800b5 fix new php tests for open source
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.
2013-06-21 11:44:41 -07:00

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"));