public function toNativeDateTimeZone() { return new \DateTimeZone($this->getName()->toNative()); }
public function testToNativeDateTimeZone() { $nativeTimeZone = new \DateTimeZone('Europe/Madrid'); $timeZone = new TimeZone(new StringLiteral('Europe/Madrid')); $this->assertEquals($nativeTimeZone, $timeZone->toNativeDateTimeZone()); }