diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-06 08:38:37 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-06 08:38:37 +0000 |
| commit | ee76ea3cae52f83c6df29e2a14fa6bf125c5bc54 (patch) | |
| tree | 9526da3f375b1235820fc66f5010cd9d63b31854 /roundcubemail/program | |
| parent | 788a584b8d29e4e86117505784476b8870361789 (diff) | |
Avoid use of 5.2 functions (#1488292)
git-svn-id: https://svn.roundcube.net/trunk@5729 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index b16f0202a..d71a82ba5 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -1062,8 +1062,7 @@ function format_date($date, $format=NULL, $convert=true) if (empty($ts)) return ''; - $date = new DateTime; - $date->setTimestamp($ts); + $date = new DateTime("@".$ts); // convert to the right timezone $stz = date_default_timezone_get(); |
