summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 00:20:28 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-16 00:20:28 (EDT)
commit146a6867fd188872b0f5d1b05c61d9330e143fe5 (patch)
treea361efc6d6ac3415658a88f6fb2f37828d1738c9 /lib
parent4b2654a5b69a15b1a492040e5c5d365f106a83c2 (diff)
ob_rfc822_mktime(): Drop "+" TZ sign
Diffstat (limited to 'lib')
-rw-r--r--lib/time.sh3
1 files changed, 2 insertions, 1 deletions
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} \