From 6bd887dc96550782791d56471075d525d8e7d598 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Mon, 10 Mar 2014 16:07:16 -0400 Subject: [PATCH] Use ISO 8601 date format in list_session Avoid confusion between US/European date formats. --- abduco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abduco.c b/abduco.c index 044ee85..64b448e 100644 --- a/abduco.c +++ b/abduco.c @@ -366,7 +366,7 @@ static int list_session() { while (n--) { struct stat sb; char buf[255]; if (stat(namelist[n]->d_name, &sb) == 0) { - strftime(buf, sizeof(buf), "%a%t %d.%m.%Y %T", localtime(&sb.st_atime)); + strftime(buf, sizeof(buf), "%a%t %F %T", localtime(&sb.st_atime)); printf("%c %s\t%s\n", sb.st_mode & S_IXUSR ? '*' : ' ', buf, namelist[n]->d_name); } free(namelist[n]);