Make events repeat yearly for now

This commit is contained in:
Matteo Settenvini 2022-07-29 02:19:47 +02:00
parent 8e1547750e
commit 0d53be51a2
Signed by: matteo
GPG Key ID: 8576CC1AD97D42DF
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ fn to_event(date: NaiveDate, meal: Meal, recipe: &recipe::Recipe) -> (String, Ev
&Local.from_local_datetime(&end_time).unwrap(), &Local.from_local_datetime(&end_time).unwrap(),
))); )));
// TODO make configurable yearly repetition, for now this suits my personal uses
event.push(calprop::RRule::new("FREQ=YEARLY"));
let alarm = ics::Alarm::display( let alarm = ics::Alarm::display(
calprop::Trigger::new("-P15M"), calprop::Trigger::new("-P15M"),
calprop::Description::new(&recipe.name), calprop::Description::new(&recipe.name),