Arquivos
hhvm/hphp/test/slow/ext_datetime/localtime.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

11 linhas
216 B
PHP

<?php
date_default_timezone_set("America/Los_Angeles");
$d = strtotime("2008-09-10 12:34:56");
$localtime = localtime($d);
$localtime_assoc = localtime($d, true);
var_dump($localtime);
var_dump($localtime_assoc);