From d375aa24d6e7aac02f6732872e9d8dc76d877da5 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 17:38:54 +1100 Subject: [PATCH] Birthday: Fix bug with 0:00 --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index fed90d4b..12d22239 100755 --- a/neofetch +++ b/neofetch @@ -2965,7 +2965,7 @@ convert_time() { # Convert 24 hour time to 12 hour time + AM/PM case "$hour" in - 0[0-9] | 1[0-1]) time="${hour/00/12}${min} AM" ;; + [0-9] | 0[0-9] | 1[0-1]) time="${hour/00/12}${min} AM" ;; *) time="$((hour - 12))${min} PM" ;; esac