From 27e634fc0c039901f028c271210ed2cc8aa54f6a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Dec 2016 12:33:42 +1100 Subject: [PATCH] Birthday: Fix Month matching on Windows --- neofetch | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/neofetch b/neofetch index 21c21d99..4df60ccf 100755 --- a/neofetch +++ b/neofetch @@ -2927,18 +2927,18 @@ convert_time() { # Get month. (Month code is used for day of week) case "$2" in - 1 | "Jan") month="Jan"; month_code="0" ;; - 2 | "Feb") month="Feb"; month_code="3" ;; - 3 | "Mar") month="Mar"; month_code="3" ;; - 4 | "Apr") month="Apr"; month_code="6" ;; - 5 | "May") month="May"; month_code="1" ;; - 6 | "Jun") month="Jun"; month_code="4" ;; - 7 | "Jul") month="Jul"; month_code="6" ;; - 8 | "Aug") month="Aug"; month_code="2" ;; - 9 | "Sep") month="Sep"; month_code="5" ;; - 10 | "Oct") month="Oct"; month_code="0" ;; - 11 | "Nov") month="Nov"; month_code="3" ;; - 12 | "Dec") month="Dec"; month_code="5" ;; + 1 | 01 | "Jan") month="Jan"; month_code="0" ;; + 2 | 02 | "Feb") month="Feb"; month_code="3" ;; + 3 | 03 | "Mar") month="Mar"; month_code="3" ;; + 4 | 04 | "Apr") month="Apr"; month_code="6" ;; + 5 | 05 | "May") month="May"; month_code="1" ;; + 6 | 06 | "Jun") month="Jun"; month_code="4" ;; + 7 | 07 | "Jul") month="Jul"; month_code="6" ;; + 8 | 08 | "Aug") month="Aug"; month_code="2" ;; + 9 | 09 | "Sep") month="Sep"; month_code="5" ;; + 10 | "Oct") month="Oct"; month_code="0" ;; + 11 | "Nov") month="Nov"; month_code="3" ;; + 12 | "Dec") month="Dec"; month_code="5" ;; esac # Get leap year.