diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-06 12:06:31 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-21 08:58:53 +0200 |
commit | 3e84074ae55bc93faad0b708aa0dd6fd0f09ade9 (patch) | |
tree | c6d3dd1695f79ecd9acddc54767bbf06abebc72a /src/event.c | |
parent | 50ad339a228a779ae1284e21f98321268478669c (diff) | |
download | calcurse-3e84074ae55bc93faad0b708aa0dd6fd0f09ade9.zip |
Make events start on 00:00 (12:00 a.m.)
There is absolutely no reason to make events start on noon, 12:00.
Switching to 00:00 seems totally reasonable here, and makes event
handling a bit easier, also.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/event.c')
-rw-r--r-- | src/event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/event.c b/src/event.c index 6338c7e..80a1c7e 100644 --- a/src/event.c +++ b/src/event.c @@ -155,7 +155,7 @@ event_scan (FILE *f, struct tm start, int id, char *note) { *nl = '\0'; } - start.tm_hour = 12; + start.tm_hour = 0; start.tm_min = 0; start.tm_sec = 0; start.tm_isdst = -1; @@ -213,7 +213,7 @@ void event_paste_item (void) { (void)event_new (bkp_cut_event.mesg, bkp_cut_event.note, - date2sec (*calendar_get_slctd_day (), 12, 0), + date2sec (*calendar_get_slctd_day (), 0, 0), bkp_cut_event.id); event_free_bkp (); } |