1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Merge pull request #84 from gedrox/patch-1

[#DWEB-103] Fixed UTC timezone creation
This commit is contained in:
Benjamin Eberlei 2012-04-13 02:17:43 -07:00
commit 543a3ddb03

View File

@ -98,7 +98,7 @@ the UTC time at the time of the booking and the timezone the event happend in.
return $value->format($platform->getDateTimeFormatString(),
(self::$utc) ? self::$utc : (self::$utc = new \DateTimeZone(\DateTimeZone::UTC))
(self::$utc) ? self::$utc : (self::$utc = new \DateTimeZone('UTC'))
);
}
@ -111,7 +111,7 @@ the UTC time at the time of the booking and the timezone the event happend in.
$val = \DateTime::createFromFormat(
$platform->getDateTimeFormatString(),
$value,
(self::$utc) ? self::$utc : (self::$utc = new \DateTimeZone(\DateTimeZone::UTC))
(self::$utc) ? self::$utc : (self::$utc = new \DateTimeZone('UTC'))
);
if (!$val) {
throw ConversionException::conversionFailed($value, $this->getName());