tests are looking good for ongoing events
This commit is contained in:
parent
c20f1ca1f0
commit
773bd82216
@ -27,7 +27,7 @@ install: $(EXECUTABLE)
|
|||||||
|
|
||||||
.PHONY:clean
|
.PHONY:clean
|
||||||
clean:
|
clean:
|
||||||
-rm -f $(EXECUTABLE) *.o
|
-rm -vf $(EXECUTABLE) *.o
|
||||||
|
|
||||||
.PHONY:uninstall
|
.PHONY:uninstall
|
||||||
uninstall:
|
uninstall:
|
||||||
|
@ -49,7 +49,7 @@ void free_list(struct event *head)
|
|||||||
void print_upcoming(struct event *head, char current_date[], int show_all_events) {
|
void print_upcoming(struct event *head, char current_date[], int show_all_events) {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (head != NULL) {
|
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);
|
pretty_print_date_time(head->start_date);
|
||||||
print_end_date(head->end_date, head->start_date);
|
print_end_date(head->end_date, head->start_date);
|
||||||
printf("\nSUMMARY: %s\n", head->summary);
|
printf("\nSUMMARY: %s\n", head->summary);
|
||||||
|
@ -301,9 +301,9 @@ BEGIN:VEVENT
|
|||||||
UID:ce6cc0e3ca1bb6a22783ace61034b12c57325b4e
|
UID:ce6cc0e3ca1bb6a22783ace61034b12c57325b4e
|
||||||
DTSTAMP:20230719T152822Z
|
DTSTAMP:20230719T152822Z
|
||||||
DTSTART;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
|
DTSTART;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
|
||||||
20230831T180000
|
20241005T140000
|
||||||
DTEND;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
|
DTEND;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
|
||||||
20230831T220000
|
20241005T220000
|
||||||
SEQUENCE:3
|
SEQUENCE:3
|
||||||
SUMMARY:dentist
|
SUMMARY:dentist
|
||||||
TRANSP:OPAQUE
|
TRANSP:OPAQUE
|
||||||
|
Reference in New Issue
Block a user