Skip to content

Commit 19d7fb2

Browse files
committed
Debug
1 parent cf56c88 commit 19d7fb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Functional/Types/DateTimeTzImmutableTypeTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use DateTimeImmutable;
88
use DateTimeZone;
9+
use Doctrine\DBAL\Platforms\PostgreSQLPlatform;
910
use Doctrine\DBAL\Schema\Table;
1011
use Doctrine\DBAL\Tests\FunctionalTestCase;
1112
use Doctrine\DBAL\Types\Type;
@@ -44,6 +45,10 @@ public function testInsertAndSelect(): void
4445

4546
$resultDateTimeTzValue = $dateTimeTzImmutableType->convertToPHPValue($res1, $platform);
4647

48+
if ($platform instanceof PostgreSQLPlatform) {
49+
var_dump($this->connection->executeQuery('SHOW timezone')->fetchOne());
50+
}
51+
4752
self::assertInstanceOf(DateTimeImmutable::class, $resultDateTimeTzValue);
4853
self::assertSame($value1->getTimestamp(), $resultDateTimeTzValue->getTimestamp());
4954
self::assertSame('1986-03-22T19:45:30-03:00', $resultDateTimeTzValue->format(DateTimeImmutable::ATOM));

0 commit comments

Comments
 (0)