diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index 17e0a7af..aa061e95 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -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.