From: Petr Baudis Date: Fri, 10 Jun 2005 22:19:36 GMT Subject: Re: [PATCH] Fix cogito handling of timezones Message-ID: <20050610221936.GA22111@pasky.ji.cz> In-Reply-To: <1118353230.2825.10.camel@dv> Hello, FYI, from the contestants for the octal fix, I've chosen to take Dan's solution - not that I'd think it's the best, but it's simple and mainly I'm taking other Dan's changes and I don't like solving conflicts. > + local secs=$1 tzhours=${2:0:3} tzmins=${2:0:1}${2:3} format=$3 > + # bash doesn't like leading zeros > + [ "${tzhours:1:1}" = 0 ] && tzhours=${2:0:1}${2:2:1} > + secs=$((secs + tzhours * 3600 + tzmins * 60)) -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ be careful, some twit might quote you out of context..