From 787a421846ad12c4e36488f1c50d4e6d93c22b22 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 22 Nov 2014 11:39:19 -0500 Subject: Fix rcube_utils::anytodatetime() with no timezone specified --- program/lib/Roundcube/rcube_utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') diff --git a/program/lib/Roundcube/rcube_utils.php b/program/lib/Roundcube/rcube_utils.php index a51247eae..add97ee07 100644 --- a/program/lib/Roundcube/rcube_utils.php +++ b/program/lib/Roundcube/rcube_utils.php @@ -797,7 +797,7 @@ class rcube_utils // try to parse string with DateTime first if (!empty($date)) { try { - $dt = new DateTime($date, $timezone); + $dt = $timezone ? new DateTime($date, $timezone) : new DateTime($date); } catch (Exception $e) { // ignore -- cgit v1.2.3