summaryrefslogtreecommitdiff
path: root/src/vars.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/vars.c
parent0f6374d787158e50b510a8a032ff80bf7848da8a (diff)
downloadcalcurse-0c281d2c1e53248f0075f988fb4ba02f041bd170.zip
Tony's patch concerning date format configuration imported
Diffstat (limited to 'src/vars.c')
-rwxr-xr-xsrc/vars.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vars.c b/src/vars.c
index 6dab20b..db09bf8 100755
--- a/src/vars.c
+++ b/src/vars.c
@@ -1,8 +1,8 @@
-/* $calcurse: vars.c,v 1.6 2007/12/30 16:27:59 culot Exp $ */
+/* $calcurse: vars.c,v 1.7 2008/04/09 20:38:29 culot Exp $ */
/*
* Calcurse - text-based organizer
- * Copyright (c) 2004-2006 Frederic Culot
+ * Copyright (c) 2004-2008 Frederic Culot
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -25,6 +25,7 @@
*/
#include <stdlib.h>
+#include <string.h>
#include "i18n.h"
#include "calendar.h"
@@ -101,6 +102,8 @@ vars_init(conf_t *conf)
conf->auto_save = true;
conf->skip_system_dialogs = false;
conf->skip_progress_bar = false;
+ strncpy(conf->output_datefmt, "%D", 3);
+ conf->input_datefmt = 1;
/* Default external editor and pager */
ed = getenv("VISUAL");