From 828ad2692fb5b8c26f49e305ecf1ac92ef2ae0df Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 14:51:30 +1100 Subject: [PATCH] Birthday: Handle 00:00 --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 2b719a56..4ee3ef0d 100755 --- a/neofetch +++ b/neofetch @@ -2966,6 +2966,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" ;; *) time="$((hour - 12))${min} PM" ;; esac