gnu-social/extlib/Date/tests/bugs/bug-8518.phpt
Diogo Cordeiro a38f25f7cd [PEAR] Modernize Validate code
Upgraded IDNA to IDNA2
Added PEAR Date
> fixed: The each function is deprecated
2019-08-03 17:31:43 +01:00

22 lines
379 B
PHP

--TEST--
Bug #8518: Date::copy() doest not copy the parts of a second.
--FILE--
<?php
/**
* Test for: Date
* Parts tested: Date::copy()
* $Id$
*/
require_once 'Date.php';
$date = new Date('2006-11-08 10:19:25.9942');
$date->setTZbyID("UTC");
$tmp = new Date;
$tmp->copy($date);
echo $tmp->format('%Y-%m-%d %H:%M:%s%O'."\n");
?>
--EXPECT--
2006-11-08 10:19:25.994200+00:00