bugfix, when khal event is a birthday
This commit is contained in:
@@ -122,9 +122,8 @@ fn main() {
|
|||||||
for e in out_iter {
|
for e in out_iter {
|
||||||
let event_start = match NaiveTime::parse_from_str(e, "%H:%M") {
|
let event_start = match NaiveTime::parse_from_str(e, "%H:%M") {
|
||||||
Ok(s) => s,
|
Ok(s) => s,
|
||||||
Err(f) => {
|
Err(_f) => {
|
||||||
eprintln!("Error parsing event start time: {}", f);
|
continue;
|
||||||
process::exit(1);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
events.push(today.and_time(event_start).unwrap().naive_local());
|
events.push(today.and_time(event_start).unwrap().naive_local());
|
||||||
|
|||||||
Reference in New Issue
Block a user