6.0.0-beta13
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/11/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4851] Calendar export issues (alarms & timezone)
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__..__ .. . | [__][__) || | | | || \\__||/\|
Comment
> since i need to show this tomorrow and didn't have any time i hacked > the code really quickly... i would n't use this it's very ugly > > > > /* vCalendar 2.0 alarms. */ > > // NOTE: only works with minutes > > foreach ($vEvent->getComponents() as $o) > > { > > // asume it's an alarm, big hack, could add if ($o->getType > == 'valarm') > > $theAttributes = $o->getAllAttributes(); > > foreach ($theAttributes as $theAttribute) > > { > > if($theAttribute['name'] == 'TRIGGER') > > { > > // lightning writes minus minutes, so sqrt the thing, ugly > > $this->alarm = > sqrt($theAttribute['value']*$theAttribute['value'])/60; > > } > > } > > > > } > > > > which replaces (in Driver.php) > > $alarm = $vEvent->getAttribute('AALARM'); > > if (!is_array($alarm) && !is_a($alarm, 'PEAR_Error') && intval($alarm)) { > > $this->alarm = intval(($this->start->timestamp() - $alarm) / 60); > > Horde::logMessage(intval(($this->start->timestamp() - $alarm) > / 60), __FILE__, __LINE__, PEAR_LOG_NOTICE); > > }
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers