Aleksander Machniak
2014-11-22 787a421846ad12c4e36488f1c50d4e6d93c22b22
Fix rcube_utils::anytodatetime() with no timezone specified
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_utils.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_utils.php
@@ -797,7 +797,7 @@
        // 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