summaryrefslogtreecommitdiffstats
path: root/lib/time.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/time.sh')
-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} \