mirror of
https://github.com/dg/dibi.git
synced 2025-02-23 02:12:25 +01:00
16 lines
448 B
PHP
16 lines
448 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Tester\Assert;
|
|
|
|
require __DIR__ . '/bootstrap.php';
|
|
|
|
$conn = new Dibi\Connection($config);
|
|
$translator = new Dibi\Translator($conn);
|
|
|
|
$datetime = new DateTime('1978-01-23 00:00:00');
|
|
|
|
Assert::equal($datetime->format('U'), $translator->formatValue(new DateTime($datetime->format('c')), null));
|
|
Assert::equal($datetime->format('U'), $translator->formatValue(new DateTimeImmutable($datetime->format('c')), null));
|