From 0fc97c2833b2254b391bb741b3262f86569c5938 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 22 Dec 2008 02:56:12 -0500 Subject: [PATCH] - fix internal date parsing --- program/lib/imap.inc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/lib/imap.inc b/program/lib/imap.inc index 329db05..65bb54c 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -1743,7 +1743,7 @@ //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 @@ //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; -- Gitblit v1.9.1