git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix cogito handling of timezones

From
Petr Baudis <pasky@ucw.cz>
Date
Jun 10, 2005, 22:19 UTC
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/
<Espy> be careful, some twit might quote you out of context..
Previous: Pavel Roskin
Message 2 of 2 in “value too great for base (error token is "-0800")”
  1. value too great for base (error token is "-0800")Pavel Roskin, Jun 9, 2005
  2. Petr BaudisJun 10, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.