From a49adf2db7cfb3e4b12fed948c76205a42f334cd Mon Sep 17 00:00:00 2001 From: mercurialmoon Date: Wed, 23 Dec 2020 19:15:05 -0800 Subject: Allow configuration of appointment time format Added the option to configure the format in which appointment time is displayed. The setting is called "format.appointmenttime" under the general settings menu. Setting defaults to previous behavior, which was "%H:%M". Signed-off-by: mercurialmoon Signed-off-by: Lukas Fleischer --- src/vars.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vars.c') diff --git a/src/vars.c b/src/vars.c index 2c308e7..df27fbc 100644 --- a/src/vars.c +++ b/src/vars.c @@ -140,6 +140,7 @@ void vars_init(void) conf.input_datefmt = 1; conf.heading_pos = RIGHT; strcpy(conf.day_heading, DAY_HEADING_DEFAULT); + strcpy(conf.timefmt, APPT_TIME_DEFAULT); datefmt_str[0] = _("mm/dd/yyyy"); datefmt_str[1] = _("dd/mm/yyyy"); -- cgit v1.2.3-54-g00ecf