Fix rcube_utils::anytodatetime() with no timezone specified

pull/251/head
Aleksander Machniak 10 years ago
parent 0b36d15157
commit 787a421846

@ -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

Loading…
Cancel
Save