forked from github/abduco
Use ISO 8601 date format in list_session
Avoid confusion between US/European date formats.
This commit is contained in:
parent
f9f7eb63af
commit
6bd887dc96
2
abduco.c
2
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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue