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

Re: Trying to use AUTHOR_DATE

From
ETEdgar Toernig <froese@gmx.de>
Date
Apr 30, 2005, 03:23 UTC
Message-ID
<20050430052318.1bd4b189.froese@gmx.de>
In-Reply-To
<200504300021.j3U0La023762@unix-os.sc.intel.com>
tony.luck@intel.com wrote:
Show 5 quoted lines
>
> > There was a time-parsing bug somewhere, where mktime() got invoked on a 
> > UTC date.  I proposed changing it to curl_gettime() instead.
> 
> Here's a patch to switch to using curl_getdate():

Another dependency :-( I can live without http-pull but not without commit-tree.

What's wrong with the patch I sent to fix this:
	http://marc.theaimsgroup.com/?m=111446501003389
Show 6 quoted lines
> +	/* find the timezone at the end */
> +	p = date + strlen(date);
> +	while (p > date && isdigit(*--p))
> +		;
> +	if ((*p == '+' || *p == '-') && strlen(p) == 5)
> +		snprintf(result, maxlen, "%lu %5.5s", then, p);
This will choke on dates from Linus which have a trailing comment:
	Date: Fri, 29 Apr 2005 15:26:14 -0700 (PDT)
Ciao, ET.
Previous: tony.luck@intel.comNext: H. Peter Anvin
Message 4 of 5 in “Trying to use AUTHOR_DATE”
  1. tony.luck@intel.comApr 29, 2005
  2. H. Peter AnvinApr 29, 2005
  3. tony.luck@intel.comApr 30, 2005
  4. Edgar ToernigApr 30, 2005
  5. H. Peter AnvinApr 30, 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.