From 278460dd58edf9723f721a693552243d5f39e016 Mon Sep 17 00:00:00 2001 From: Aidan Saunders Date: Mon, 13 Nov 2017 13:11:12 +0000 Subject: [PATCH] Fix handling of 0 offset --- CRM/Utils/System/Base.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Utils/System/Base.php b/CRM/Utils/System/Base.php index d3f8f060d0..ef47412542 100644 --- a/CRM/Utils/System/Base.php +++ b/CRM/Utils/System/Base.php @@ -725,6 +725,11 @@ abstract class CRM_Utils_System_Base { $dateTime = new DateTime("now", $tzObj); $tz = $tzObj->getOffset($dateTime); + if ($tz == 0) { + // CRM-21422 + return '+00:00'; + } + if (empty($tz)) { return FALSE; } -- 2.25.1