mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-26 05:33:40 +00:00
Handle triggers that are after the thing they are related to.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
8743238952
commit
72baec50a7
@ -680,6 +680,9 @@ function write_alarms( $dav_id, $ical ) {
|
||||
if ( $minus ) {
|
||||
$related_trigger = preg_replace( '{(\d+[WDHMS])}', '-$1 ', $related_trigger );
|
||||
}
|
||||
else {
|
||||
$related_trigger = preg_replace( '{(\d+[WDHMS])}', '$1 ', $related_trigger );
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ( false === strtotime($trigger->Value()) ) continue; // Invalid date.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user