Make events repeat yearly for now
This commit is contained in:
parent
8e1547750e
commit
0d53be51a2
|
@ -87,6 +87,9 @@ fn to_event(date: NaiveDate, meal: Meal, recipe: &recipe::Recipe) -> (String, Ev
|
|||
&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(
|
||||
calprop::Trigger::new("-P15M"),
|
||||
calprop::Description::new(&recipe.name),
|
||||
|
|
Loading…
Reference in New Issue