From 0c281d2c1e53248f0075f988fb4ba02f041bd170 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Wed, 9 Apr 2008 20:38:29 +0000 Subject: Tony's patch concerning date format configuration imported --- src/io.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index bb300d5..2396cc7 100755 --- a/src/io.c +++ b/src/io.c @@ -1,4 +1,4 @@ -/* $calcurse: io.c,v 1.27 2008/01/20 10:45:38 culot Exp $ */ +/* $calcurse: io.c,v 1.28 2008/04/09 20:38:29 culot Exp $ */ /* * Calcurse - text-based organizer @@ -486,6 +486,16 @@ io_save_cal(conf_t *conf) fprintf(data_file, "notify-bar_command=\n"); fprintf(data_file, "%s\n", nbar->cmd); + fprintf(data_file, + "\n# Format of the date to be displayed in non-interactive mode :\n"); + fprintf(data_file, "output_datefmt=\n"); + fprintf(data_file, "%s\n", conf->output_datefmt); + + fprintf(data_file, + "\n# Format to be used when entering a date (1-mm/dd/yyyy, 2-dd/mm/yyyy, 3-yyyy/mm/dd) :\n"); + fprintf(data_file, "input_datefmt=\n"); + fprintf(data_file, "%d\n", conf->input_datefmt); + pthread_mutex_unlock(&nbar->mutex); fclose(data_file); -- cgit v1.2.3-54-g00ecf