diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-11-22 11:39:19 -0500 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-11-22 11:39:19 -0500 |
commit | 787a421846ad12c4e36488f1c50d4e6d93c22b22 (patch) | |
tree | 60dbc8cac6b80734253adac8f0bf14516b08ab87 /program/lib | |
parent | 0b36d151572e050b51d82e7429fee847ebb33e22 (diff) |
Fix rcube_utils::anytodatetime() with no timezone specified
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/Roundcube/rcube_utils.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |