Minor changes for the new log options.

This commit is contained in:
Andrea Mazzoleni 2014-02-16 20:49:16 +01:00
parent cb0a280ddc
commit 10d305285c
3 changed files with 3 additions and 5 deletions

View file

@ -366,7 +366,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
fprintf(stdlog, "unixtime:%"PRIi64"\n", (int64_t)t);
if (tm) {
char datetime[64];
strftime(datetime, sizeof(datetime), "%F %T", tm);
strftime(datetime, sizeof(datetime), "%Y-%m-%d %H:%M:%S", tm);
fprintf(stdlog, "time:%s\n", datetime);
}
fprintf(stdlog, "conf:%s\n", path);