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

Re: [PATCH] git-cvsimport: allow author-specific timezones

From
Jeff King <peff@peff.net>
Date
Oct 16, 2012, 06:31 UTC
Message-ID
<20121016063152.GB22941@sigill.intra.peff.net>
In-Reply-To
<7v4nlvulc2.fsf@alter.siamese.dyndns.org>
On Mon, Oct 15, 2012 at 08:50:21PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Chris Rorvick <chris@rorvick.com> writes:
> 
> > It occurred to me that the success of the unit test depends on the
> > host platform's zoneinfo database.  I think this problem is inherent
> > with this functionality.  Should the unit test attempt to detect
> > support for the used timezones and short circuit if this fails?  Not
> > sure exactly how I'd do this, but wondering if it's worth thinking
> > about.
> 
> Yeah, that did indeed cross my mind.
> 
> You could say TZ=QST6QDT or something silly like that but that in
> turn has to assume your tzset() is POSIX.1 compliant anyway.

We use EST5 in t0006 (it was originally just "EST" but IRIX complained). It's been in the test suite for two years without a problem, so it may be simple and safe enough to just use that.

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “git-cvsimport: allow author-specific timezones”
  1. git-cvsimport: allow author-specific timezonesChris Rorvick, Oct 15, 2012
  2. Junio C HamanoOct 15, 2012
  3. Chris RorvickOct 16, 2012
  4. Junio C HamanoOct 16, 2012
  5. Jeff KingOct 16, 2012
  6. Junio C HamanoOct 16, 2012

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.