summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-22 07:56:12 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-22 07:56:12 +0000
commit14c96c91633a50e1e08cef65f1d1f794958eee4a (patch)
tree776464dadeda9729d20b1a69ae51325211c3f159
parent8cb2e1be642eb0e80c5f039fc424c8459bcacd49 (diff)
- fix internal date parsing
git-svn-id: https://svn.roundcube.net/trunk@2185 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/lib/imap.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index 329db0534..65bb54ce2 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/program/lib/imap.inc
@@ -1743,7 +1743,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false)
//get timezone
$time_str = substr($time_str, 0, -1);
$time_zone_str = substr($time_str, -5); // extract timezone
- $time_str = substr($time_str, 1, -6); // remove quotes
+ $time_str = substr($time_str, 0, -5); // remove timezone
$time_zone = (float)substr($time_zone_str, 1, 2); // get first two digits
if ($time_zone_str[3] != '0') {
@@ -1756,7 +1756,7 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set, $uidfetch=false)
//calculate timestamp
$timestamp = strtotime($time_str); //return's server's time
$timestamp -= $time_zone * 3600; //compensate for tz, get GMT
-
+
$result[$id]->internaldate = $time_str;
$result[$id]->timestamp = $timestamp;
$result[$id]->date = $time_str;