tests are looking good for ongoing events

This commit is contained in:
2024-10-05 15:47:47 +02:00
parent c20f1ca1f0
commit 773bd82216
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ install: $(EXECUTABLE)
.PHONY:clean
clean:
-rm -f $(EXECUTABLE) *.o
-rm -vf $(EXECUTABLE) *.o
.PHONY:uninstall
uninstall:

View File

@ -49,7 +49,7 @@ void free_list(struct event *head)
void print_upcoming(struct event *head, char current_date[], int show_all_events) {
int i = 0;
while (head != NULL) {
if (strcmp(head->start_date, current_date) >= 0) {
if (strcmp(head->end_date, current_date) >= 0) {
pretty_print_date_time(head->start_date);
print_end_date(head->end_date, head->start_date);
printf("\nSUMMARY: %s\n", head->summary);