File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use DateTimeImmutable ;
8
8
use DateTimeZone ;
9
+ use Doctrine \DBAL \Platforms \PostgreSQLPlatform ;
9
10
use Doctrine \DBAL \Schema \Table ;
10
11
use Doctrine \DBAL \Tests \FunctionalTestCase ;
11
12
use Doctrine \DBAL \Types \Type ;
@@ -44,6 +45,10 @@ public function testInsertAndSelect(): void
44
45
45
46
$ resultDateTimeTzValue = $ dateTimeTzImmutableType ->convertToPHPValue ($ res1 , $ platform );
46
47
48
+ if ($ platform instanceof PostgreSQLPlatform) {
49
+ var_dump ($ this ->connection ->executeQuery ('SHOW timezone ' )->fetchOne ());
50
+ }
51
+
47
52
self ::assertInstanceOf (DateTimeImmutable::class, $ resultDateTimeTzValue );
48
53
self ::assertSame ($ value1 ->getTimestamp (), $ resultDateTimeTzValue ->getTimestamp ());
49
54
self ::assertSame ('1986-03-22T19:45:30-03:00 ' , $ resultDateTimeTzValue ->format (DateTimeImmutable::ATOM ));
You can’t perform that action at this time.
0 commit comments