From 146a6867fd188872b0f5d1b05c61d9330e143fe5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 00:20:28 -0400 Subject: ob_rfc822_mktime(): Drop "+" TZ sign --- diff --git a/lib/time.sh b/lib/time.sh index cb89ca8..40d55f6 100644 --- a/lib/time.sh +++ b/lib/time.sh @@ -130,7 +130,8 @@ ob_rfc822_mktime() IFS=':' read hour min sec <<-EOF ${time} EOF - tzsgn="${tz%%[0-9]*}"; tz=${tz#[+-]}; tz=${tz#0}; tz=${tz#0} + tzsgn="${tz%%[0-9]*}"; tzsgn="${tzsgn#+}" + tz=${tz#[+-]}; tz=${tz#0}; tz=${tz#0} tzhour=$((${tz} / 100)) tzmin=$(( ${tz} % 100)) _ob_mktime ${year} ${mon} ${mday#0} ${hour#0} ${min#0} ${sec#0} \ -- cgit v0.9.1