public static function getSyncTZFromOffsets(array $offsets)
{
if (!Horde_Mapi::isLittleEndian()) {
$offsets['bias'] = Horde_Mapi::chbo($offsets['bias']);
$offsets['stdbias'] = Horde_Mapi::chbo($offsets['stdbias']);
$offsets['dstbias'] = Horde_Mapi::chbo($offsets['dstbias']);
}
$packed = pack('la64vvvvvvvvla64vvvvvvvvl', $offsets['bias'], '', 0, $offsets['stdmonth'], $offsets['stdday'], $offsets['stdweek'], $offsets['stdhour'], $offsets['stdminute'], $offsets['stdsecond'], $offsets['stdmillis'], $offsets['stdbias'], '', 0, $offsets['dstmonth'], $offsets['dstday'], $offsets['dstweek'], $offsets['dsthour'], $offsets['dstminute'], $offsets['dstsecond'], $offsets['dstmillis'], $offsets['dstbias']);
return base64_encode($packed);
}