From 83bee70f80d8c98b875c943297b0049eae7d6d22 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 06 Dec 2020 11:21:53 -0500 Subject: ob_*_gmtime(): Don't freeze in December --- (limited to 'lib') diff --git a/lib/time.sh b/lib/time.sh index aa4990b..5100b04 100644 --- a/lib/time.sh +++ b/lib/time.sh @@ -52,6 +52,7 @@ _ob_month_to_days() 1) d=0;; 2) d=31;; 3) d=59;; 4) d=90;; 5) d=120;; 6) d=151;; 7) d=181;; 8) d=212;; 9) d=243;; 10) d=273;; 11) d=304;; 12) d=334;; + 13)d=365;; esac [ ${month} -ge 2 ] && _ob_is_leap_year ${year} && : $((++d)) printf '%d' ${d} -- cgit v0.9.1