From 105501ba9ccb98127916282aeb05f0a1cdba200e Mon Sep 17 00:00:00 2001 From: Mooffie Date: Wed, 14 Dec 2016 01:03:18 +0200 Subject: [PATCH] Ticket #3729: extfs: uace: fix date format. Use "MM-DD-YYYY hh:mm" instead of "Mon DD YYYY hh:mm". --- src/vfs/extfs/helpers/uace.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vfs/extfs/helpers/uace.in b/src/vfs/extfs/helpers/uace.in index b383d4152..90e3f4bd0 100644 --- a/src/vfs/extfs/helpers/uace.in +++ b/src/vfs/extfs/helpers/uace.in @@ -16,7 +16,7 @@ ACE_GET="unace x" # The 'list' command executive -# Unace: DD.MM.YY HH.MM packed size ratio file +# Unace: DD.MM.YY HH:MM packed size ratio file # ls: mc_ace_fs_list() { @@ -27,7 +27,6 @@ mc_ace_fs_list() fi fi $ACE_LIST "$1" | @AWK@ -v uid=$UID ' -BEGIN { Month="JanFebMarAprMayJunJulAugSepOctNovDec" } /%/ { split($1,date,".") @@ -36,7 +35,7 @@ BEGIN { Month="JanFebMarAprMayJunJulAugSepOctNovDec" } else date[3]=date[3] + 2000 - printf "-rw-r--r-- 1 %-8d %-8d %8d %s %2d %4d %s %s\n", uid, 0, $3, substr(Month,3*(date[2]-1)+1,3),date[1],date[3], $2, $6 + printf "-rw-r--r-- 1 %-8d %-8d %8d %02d-%02d-%04d %s %s\n", uid, 0, $3, date[2], date[1], date[3], $2, $6 }' 2>/dev/null exit 0 } -- 2.11.4.GIT