aboutsummaryrefslogtreecommitdiffstats
path: root/agenda_entry.c
diff options
context:
space:
mode:
authorEl-BG-1970 <elouan.gros.fr@gmail.com>2022-03-16 22:00:03 +0100
committerEl-BG-1970 <elouan.gros.fr@gmail.com>2022-03-16 22:00:03 +0100
commit2fd7e3647e70e6a925993c59d8c1751a904ae39a (patch)
tree9d3c469c08fe60139d4ad82d3762f690b43478ed /agenda_entry.c
parenta37ece490f4cf269a58afdadf6e51f62d8529a41 (diff)
downloadorg-to-conky-2fd7e3647e70e6a925993c59d8c1751a904ae39a.tar.gz
added "THIS WEEK" directive
Diffstat (limited to 'agenda_entry.c')
-rw-r--r--agenda_entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agenda_entry.c b/agenda_entry.c
index 985a8c0..8a68353 100644
--- a/agenda_entry.c
+++ b/agenda_entry.c
@@ -50,10 +50,10 @@ entry read_agenda_entry(char *agenda) {
lookahead = strstr(lookahead, "<");
char *date = (char *)malloc(tmp - lookahead + 1);
strncpy(date, lookahead+1, tmp - lookahead - 1);
- agenda_entry.date = extract_date(date);
+ agenda_entry.date = extract_date_from_string(date);
free(date);
} else {
- agenda_entry.date = (Date){ 0, 0, 0 };
+ agenda_entry.date = (Date){ 0, 0, 0, 0 };
}
return agenda_entry;