From 1643b4fbd21d23d6175a12e0ec898441a8045bbf Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 14:52:56 +1100 Subject: [PATCH] Birthday: Properly handle 00 --- neofetch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 4ee3ef0d..389bbc72 100755 --- a/neofetch +++ b/neofetch @@ -2965,8 +2965,7 @@ convert_time() { # Convert 24 hour time to 12 hour time + AM/PM case "$hour" in - 0[0-9] | 1[0-2]) time="${hour}${min} AM" ;; - 00) time="12${min} PM" ;; + 0[0-9] | 1[0-2]) time="${hour/00/12}${min} AM" ;; *) time="$((hour - 12))${min} PM" ;; esac