1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 13:17:58 +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) 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->__construct('@' . $timestamp);
$this->setTimeZone($zone); $this->setTimeZone($zone);
return $this; return $this;