function testGetDateTimeDateLOCALTZ() { $elem = new DateTime('DTSTART', '19850704T013000'); $elem['TZID'] = 'Europe/Amsterdam'; $dt = $elem->getDateTime(); $this->assertInstanceOf('DateTime', $dt); $this->assertEquals('1985-07-04 01:30:00', $dt->format('Y-m-d H:i:s')); $this->assertEquals('Europe/Amsterdam', $dt->getTimeZone()->getName()); $this->assertEquals(DateTime::LOCALTZ, $elem->getDateType()); }