diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-03-27 12:54:10 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-03-27 13:06:18 +0200 |
commit | 9e160fac16e81c42ac368f450b9cc4df29753e00 (patch) | |
tree | 9fe79f9b549f840b0d93cdfd79554e32f8e62dc1 /src/calcurse.h | |
parent | e1b6d226692ddaa8a9f077796a23317d36cd5d10 (diff) | |
download | calcurse-9e160fac16e81c42ac368f450b9cc4df29753e00.zip |
Do not assume that days always have 86400 seconds
Make that date membership is computed correctly, even if a day has less
than 86400 seconds (e.g. after changing clocks).
Reported-by: Hakan Jerning <jerning@home.se>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r-- | src/calcurse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/calcurse.h b/src/calcurse.h index d337145..3aab885 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -1111,6 +1111,7 @@ int get_item_min(long); struct tm date2tm(struct date, unsigned, unsigned); time_t date2sec(struct date, unsigned, unsigned); time_t utcdate2sec(struct date, unsigned, unsigned); +int date_cmp_day(time_t, time_t); char *date_sec2date_str(long, const char *); void date_sec2date_fmt(long, const char *, char *); int date_change(struct tm *, int, int); |