abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 6bd887dc96550782791d56471075d525d8e7d598
parent f9f7eb63afb5fe5cb52f2822658272e204c54196
Author: Lars Kellogg-Stedman <lars@redhat.com>
Date:   Mon, 10 Mar 2014 16:07:16 -0400

Use ISO 8601 date format in list_session

Avoid confusion between US/European date formats.

Diffstat:
abduco.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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]);