aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.c
diff options
context:
space:
mode:
authormercurialmoon <mercurialmoon@protonmail.com>2020-12-23 19:15:05 -0800
committerLukas Fleischer <lfleischer@calcurse.org>2021-04-11 19:52:02 -0400
commita49adf2db7cfb3e4b12fed948c76205a42f334cd (patch)
tree1a946cfa330bbdfb0a4622d5b9cf647b7162d7ba /src/vars.c
parent9b148900b87b113bc9f30033eff30865a3b43086 (diff)
downloadcalcurse-a49adf2db7cfb3e4b12fed948c76205a42f334cd.tar.gz
calcurse-a49adf2db7cfb3e4b12fed948c76205a42f334cd.zip
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 <mercurialmoon@protonmail.com> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src/vars.c')
-rw-r--r--src/vars.c1
1 files changed, 1 insertions, 0 deletions
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");