summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-04-09 20:38:29 +0000
committerFrederic Culot <calcurse@culot.org>2008-04-09 20:38:29 +0000
commit0c281d2c1e53248f0075f988fb4ba02f041bd170 (patch)
tree7f42987f28c6a4912c1bcbb99a1f17b1509fd52f /src/io.c
parent0f6374d787158e50b510a8a032ff80bf7848da8a (diff)
downloadcalcurse-0c281d2c1e53248f0075f988fb4ba02f041bd170.zip
Tony's patch concerning date format configuration imported
Diffstat (limited to 'src/io.c')
-rwxr-xr-xsrc/io.c12
1 files changed, 11 insertions, 1 deletions
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);