From b811d521a19c41c088f86c6ba65a8894dcb64d87 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 18 Jul 2017 14:31:46 +0700 Subject: [PATCH] Install Date [Convert Time]: Remove leading zero from output The leading zero in some ls output caused bash to interpret the output as octal numbers, leading to the "value too great for base" error like the AIX/IRIX uptime. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index c8c37228..cee79ba9 100755 --- a/neofetch +++ b/neofetch @@ -3838,7 +3838,7 @@ cache_uname() { convert_time() { # Convert ls timestamp to 'Tue 06 Dec 2016 4:58 PM' format. year="$1" - day="$3" + day="${3#0}" # Split time into hours/minutes. hour="${4/:*}"