From 5993ea8aaf2467879c71abe8b034aada9eed944f Mon Sep 17 00:00:00 2001 From: Rossler Jan Date: Tue, 15 Jul 2014 12:39:51 +0200 Subject: [PATCH] DibiDateTime: Restored php 5.2 support. --- dibi/libs/DibiDateTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiDateTime.php b/dibi/libs/DibiDateTime.php index 7586ab17..f4fd1c54 100644 --- a/dibi/libs/DibiDateTime.php +++ b/dibi/libs/DibiDateTime.php @@ -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;