Ticket #3729: extfs: uarc: fix date format.

Use "MM-DD-YYYY hh:mm" instead of "Mon DD YYYY hh:mm".
This commit is contained in:
Mooffie 2016-12-12 14:23:50 +02:00 committed by Yury V. Zaytsev
parent 0e4e80cf79
commit 61eb5cca37

View File

@ -24,7 +24,13 @@ mc_arc_fs_list()
fi
fi
$ARC_LIST "$1" | @AWK@ -v uid=$UID '
BEGIN { }
BEGIN {
# Copied from uzoo.in.
split("Jan:Feb:Mar:Apr:May:Jun:Jul:Aug:Sep:Oct:Nov:Dec", month_list, ":")
for (i=1; i<=12; i++) {
month[month_list[i]] = i
}
}
/^Name/ { next }
/===/ { next }
/^Total/ { next }
@ -45,7 +51,7 @@ BEGIN { }
a[2]=substr(a[2],1,2)
}
printf "-rw-r--r-- 1 %-8d %-8d %8d %s %2d %4d %02d:%02d %s\n", uid, 0, $2, $7, $6, $8, a[1], a[2], $1
printf "-rw-r--r-- 1 %-8d %-8d %8d %02d-%02d-%04d %02d:%02d %s\n", uid, 0, $2, month[$7], $6, $8, a[1], a[2], $1
}' 2>/dev/null
exit 0
}