1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-03 20:57:36 +02:00

DibiDateTime: Restored php 5.2 support.

This commit is contained in:
Rossler Jan
2014-07-15 12:39:51 +02:00
parent a118c2cf96
commit 5993ea8aaf

View File

@@ -44,7 +44,7 @@ class DibiDateTime extends DateTime
public function setTimestamp($timestamp)
{
$zone = PHP_VERSION_ID === 50206 ? new \DateTimeZone($this->getTimezone()->getName()) : $this->getTimezone();
$zone = PHP_VERSION_ID === 50206 ? new DateTimeZone($this->getTimezone()->getName()) : $this->getTimezone();
$this->__construct('@' . $timestamp);
$this->setTimeZone($zone);
return $this;