summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 00:49:13 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 00:49:13 (EDT)
commit008316c9a22d975d9da88ea59109b794f599d71a (patch)
tree699228c4a31b59cae72bd195e5f3acac88fbff43 /lib
parent201e8ba1c6abf41a07ef81307f919e3d18cd12d2 (diff)
ob_iso8601_gmtime(): Fix dates after leap days
Diffstat (limited to 'lib')
-rw-r--r--lib/time.sh2
1 files changed, 1 insertions, 1 deletions
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))