php-src/ext/date/tests/date_create-3.phpt
Antony Dovgal d0c9c06f5a fix test - class Date has been renamed
the test still fails, though...
2006-08-07 21:06:21 +00:00

14 lines
362 B
PHP

--TEST--
date_create() function [3]
--SKIPIF--
<?php if (!function_exists('date_create')) echo "SKIP"; ?>
--FILE--
<?php
date_default_timezone_set("GMT");
echo date_format(date_create("Dec31 2005 +0100"), DateTime::ISO8601), "\n";
echo date(DateTime::ISO8601, strtotime("Dec31 2005 +0100")), "\n";
?>
--EXPECT--
2005-12-31T00:00:00+0100
2005-12-31T00:00:00+0100