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>
This commit is contained in:
Lukas Fleischer
2011-10-06 12:06:31 +02:00
parent 50ad339a22
commit 3e84074ae5
3 changed files with 6 additions and 6 deletions

View File

@@ -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 ();
}