if( ext.tm_year <= 1969 && ext.tm_params.tp_dst_offset == 3600 ) icaltime_adjust( &outdate, 0, -1, 0, 0 );
icaltimetype ConvertFromPrtime( PRTime indate ) {    icaltimetype outdate = icaltime_null_time();    PRExplodedTime ext;    PRInt64 indateinusec, usecpermsec;    LL_I2L( usecpermsec, PR_USEC_PER_MSEC );    LL_MUL( indateinusec, indate, usecpermsec );    PR_ExplodeTime( indateinusec, PR_LocalTimeParameters, &ext);     outdate.year = ext.tm_year;    outdate.month = ext.tm_month + 1;    outdate.day = ext.tm_mday;    outdate.hour = ext.tm_hour;    outdate.minute = ext.tm_min;    outdate.second = ext.tm_sec;    return outdate;}