Use ISO 8601 date format in list_session

Avoid confusion between US/European date formats.
This commit is contained in:
Lars Kellogg-Stedman 2014-03-10 16:07:16 -04:00 committed by Marc André Tanner
parent f9f7eb63af
commit 6bd887dc96
1 changed files with 1 additions and 1 deletions

View File

@ -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]);