From 008316c9a22d975d9da88ea59109b794f599d71a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 00:49:13 -0400 Subject: ob_iso8601_gmtime(): Fix dates after leap days --- diff --git a/lib/time.sh b/lib/time.sh index 40d55f6..21e7448 100644 --- a/lib/time.sh +++ b/lib/time.sh @@ -172,7 +172,7 @@ ob_iso8601_gmtime() : $((timep -= ${days_in_year})) : $((year += 1)) done - while [ ${timep} -gt $(_ob_month_to_days $((${mon} + 1)) ${year}) ]; do + while [ ${timep} -ge $(_ob_month_to_days $((${mon} + 1)) ${year}) ]; do : $((mon += 1)) done mday=$((${timep} - $(_ob_month_to_days ${mon} ${year}) + 1)) -- cgit v0.9.1