diff options
author | Patrick 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) |
commit | 146a6867fd188872b0f5d1b05c61d9330e143fe5 (patch) | |
tree | a361efc6d6ac3415658a88f6fb2f37828d1738c9 | |
parent | 4b2654a5b69a15b1a492040e5c5d365f106a83c2 (diff) |
ob_rfc822_mktime(): Drop "+" TZ sign
-rw-r--r-- | lib/time.sh | 3 |
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} \ |