diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-26 22:12:36 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-26 22:12:36 +0000 |
| commit | 725d43add7753f470867991a47c1abb6f9c332e5 (patch) | |
| tree | 377fee340d69d25fc74b2ba966e16baf602412c4 /roundcubemail/program/include/main.inc | |
| parent | 85ef294c802ebf3b45620c8a23ae12393af39328 (diff) | |
Finished message sorting and fixed some skin issues
git-svn-id: https://svn.roundcube.net/trunk@62 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 0e206166e..ce9eaf069 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -947,8 +947,10 @@ function format_date($date, $format=NULL) if (is_numeric($date)) $ts = $date; - else + else if (!empty($date)) $ts = strtotime($date); + else + return ''; // convert time to user's timezone $timestamp = $ts - date('Z', $ts) + ($CONFIG['timezone'] * 3600); |
