Changeset 222 in subversion


Ignore:
Timestamp:
May 5, 2006 1:03:39 PM (7 years ago)
Author:
roundcube
Message:

Casting date parts in iil_StrToTime() to avoid warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/lib/imap.inc

    r204 r222  
    4444                - Added patch to iil_C_Sort() enabling UID SORT commands 
    4545                - Added function iil_C_ID2UID() 
     46                - Casting date parts in iil_StrToTime() to avoid mktime() warnings 
    4647                - Removed some debuggers (echo ...) 
    4748 
     
    615616        $month=$IMAP_MONTHS[$month_str]; 
    616617        $day=(int)$a[0]; 
    617         $year=$a[2]; 
     618        $year=(int)$a[2]; 
    618619        $time=$a[3]; 
    619620        $tz_str = $a[4]; 
    620621        $tz = substr($tz_str, 0, 3); 
    621         $ta=explode(":",$time); 
     622        $ta = explode(":",$time); 
    622623        $hour=(int)$ta[0]-(int)$tz; 
    623         $minute=$ta[1]; 
    624         $second=$ta[2]; 
     624        $minute=(int)$ta[1]; 
     625        $second=(int)$ta[2]; 
    625626         
    626627        //make UNIX timestamp 
Note: See TracChangeset for help on using the changeset viewer.