Fix UID issue

This commit is contained in:
Jörg Lehrke 2009-11-11 20:13:03 +00:00
parent 01c8f7a221
commit ad20d701e2

View File

@ -25,9 +25,11 @@ class Horde_iCalendar_vevent extends Horde_iCalendar {
// Default values.
$requiredAttributes = array();
$requiredAttributes['DTSTAMP'] = time();
/* This is handled by the upper layers.
$requiredAttributes['UID'] = $this->_exportDateTime(time())
. substr(str_pad(base_convert(microtime(), 10, 36), 16, uniqid(mt_rand()), STR_PAD_LEFT), -16)
. '@' . (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost');
*/
$method = !empty($this->_container) ?
$this->_container->getAttribute('METHOD') : 'PUBLISH';