diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-11-27 11:40:40 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-11-27 11:40:40 +0100 |
commit | 32eb977b1268ce1e32ab652af6059f49ce59c2f5 (patch) | |
tree | 12be25c273913dfbf581397b36b20d5b05e51dfe /program/lib/Roundcube/rcube_utils.php | |
parent | 2f4678908170b8af04a0eae2195bb3c0f732ed58 (diff) | |
parent | 25fb9732a008d4fb35e4afdefea552f36835fa43 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/lib/Roundcube/rcube_utils.php')
-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 |