summaryrefslogtreecommitdiff
path: root/conf/conf.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-11-25 13:44:07 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2013-11-25 13:44:07 +0100
commit90eb5e7a8bb60cb637626a3b433caf10cd8d2a03 (patch)
tree378927cc6aa37fcf2471b000e03b4ff4057c7d95 /conf/conf.c
parent0c95f85ec59cc970e8f9aa2da56e25dad249bbb8 (diff)
Use ISO 8601 timeformats by default.
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/conf.c b/conf/conf.c
index 14225d3b..fc674ef3 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -96,7 +96,8 @@ config_alloc(byte *name)
cfg_mem = c->mem = l;
c->file_name = cfg_strdup(name);
c->load_time = now;
- c->tf_base.fmt1 = c->tf_log.fmt1 = "%d-%m-%Y %T";
+ c->tf_route = c->tf_proto = (struct timeformat){"%T", "%F", 20*3600};
+ c->tf_base = c->tf_log = (struct timeformat){"%F %T", NULL, 0};
return c;
}