Skip to content

Commit

Permalink
More places to convert Horde_Mapi_Extension -> Horde_Compress_Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 21, 2014
1 parent 269e86b commit 4b7252c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions framework/Compress/lib/Horde/Compress/Tnef.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,18 @@ protected function _extractMapiAttributes($data, &$attachment_data)
$attachment_data[0]['type'] = $value;
break;
case self::MAPI_CREATION_TIME:
$attachment_data[0]['created'] = new Horde_Date(Horde_Mapi::filetimeToUnixtime($value), 'UTC');
try {
$attachment_data[0]['created'] = new Horde_Date(Horde_Mapi::filetimeToUnixtime($value), 'UTC');
} catch (Horde_Mapi_Exception $e) {
throw new Horde_Compress_Exception($e);
}
break;
case self::MAPI_MODIFICATION_TIME:
$attachment_data[0]['modified'] = new Horde_Date(Horde_Mapi::filetimeToUnixtime($value), 'UTC');
try {
$attachment_data[0]['modified'] = new Horde_Date(Horde_Mapi::filetimeToUnixtime($value), 'UTC');
} catch (Horde_Mapi_Exception $e) {
throw new Horde_Compress_Exception($e);
}
break;
}
}
Expand Down

0 comments on commit 4b7252c

Please sign in to comment.