yup that fixes it. Still not spotted this in CVS tho!

diff -u -r1.16 imap.inc
--- program/lib/imap.inc        23 Mar 2006 22:32:33 -0000      1.16
+++ program/lib/imap.inc        25 Mar 2006 17:22:27 -0000
@@ -1413,8 +1413,8 @@
                while (list($key, $val)=each($a)){
 
                        if ($field=="timestamp"){
-                               $data = @strtotime($value->date);
-                               if ($data != false)
+                               $timestamp = @strtotime($val->date);
+                               if ($timestamp != false)
                                        $data = $timestamp;
                                }
                        else {




On Sat, 25 Mar 2006 10:25:32 +0000, Richard Green <[EMAIL PROTECTED]> wrote:
> Tis a problem in lib/imap.inc:
> 
>                       if ($field=="timestamp"){
>                               $data = @strtotime($value->date);
>                               if ($data != false)
>                                       $data = $timestamp;
>                               }
> 
> Should be
> 
>                       if ($field=="timestamp"){
>                               $timestamp= @strtotime($val->date);
>                               if ($timestamp!= false)
>                                       $data = $timestamp;
>                               }
> 
> (use of $value when should be $val and $data when should be $timestamp)
> 
> Not being fully au fait with CVS, please can someone do the honours?
> 
> Thanks,
> Richard
> 
> 
> On Sat, 25 Mar 2006 6:24:59 +0000, sofar <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> right now the current cvs trunk orders by date in a very strange way. I
>> suspect it has something to do with me using an ISO-ish date format
> string
>> (Y-m-d H:S) to display dates in the date column. In any case the last
>> couple of day entries end up between older (above)  and really old
> (below)
>> mails.
>>
>> Sorting done after translating to user's timeformat instead of before?
>>
>> Auke



Reply via email to