[imp] imp ( date problem )

pratik pratik@vadodaramail.net
Tue, 25 Jun 2002 18:50:38 +0530


Hello All,

Iam using IMP 3.0-1 and Horde 2.0-1 .Everything goes fine except in my 
inbox
where it shows the date of the message.The date is round about always 
taking 21
days back of the sending date. I'm herewith providing the code from 
where it
brings the date. Can anybody help out to fix this probs .

    /* formats the header date string nicely */
    if (isset($h->date) && ($udate = strtotime($h->date)) != -1) {

        if ((date('Y') != @date('Y', $udate)) ||
            (date('M') != @date('M', $udate)) ||
            (date('d') != @date('d', $udate))) {
            // not today, use the date
            $dat = @strftime($conf['mailbox']['date_format'], $udate);
        } else {
            // else it's today, use the time
            $dat = @strftime($conf['mailbox']['time_format'], $udate);
        }
    } else {
        $dat = '';
    }

Waiting for replies.     

Pratik
Sys Admin
Ultrainfotech.net