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

Re: [PATCH] date.c: Parse timezone with colon as separator

From
Haitao Li <lihaitao@gmail.com>
Date
Sep 7, 2011, 03:00 UTC
Message-ID
<CABk5KLh230zLfkdaEgv7SDC6ivKqwvaGJQFVEKkKtGjMyEmLog@mail.gmail.com>
In-Reply-To
<20110906202440.GD14554@sigill.intra.peff.net>
> That seems like a sensible list to support, given that it is part of
> iso8601 (though I was a little surprised after reading your subject
> line, which would probably be better as "support iso8601 timezone
> formats").
I agree this is a better one! ;)
Show 20 quoted lines
> We should probably have new tests, too. I was going to suggest squashing
> in the ones below, but your patch doesn't seem to work with the first
> one:
>
> diff --git a/t/t0006-date.sh b/t/t0006-date.sh
> index f87abb5..9b326cd 100755
> --- a/t/t0006-date.sh
> +++ b/t/t0006-date.sh
> @@ -40,6 +40,8 @@ check_parse 2008-02 bad
>  check_parse 2008-02-14 bad
>  check_parse '2008-02-14 20:30:45' '2008-02-14 20:30:45 +0000'
>  check_parse '2008-02-14 20:30:45 -0500' '2008-02-14 20:30:45 -0500'
> +check_parse '2008-02-14 20:30:45 -05' '2008-02-14 20:30:45 -0500'
> +check_parse '2008-02-14 20:30:45 -05:00' '2008-02-14 20:30:45 -0500'
>  check_parse '2008-02-14 20:30:45' '2008-02-14 20:30:45 -0500' EST5
>
>  check_approxidate() {
>
> If I am reading your commit message correctly, that should work, right?
>
Yes, you are right. I will send an updated version to get this right.
Thank you for reviewing and giving suggestions!
/Haitao
Previous: Jeff KingNext: Haitao Li
Message 3 of 12 in “date.c: Parse timezone with colon as separator”
  1. date.c: Parse timezone with colon as separatorHaitao Li, Sep 6, 2011
  2. Jeff KingSep 6, 2011
  3. Haitao LiSep 7, 2011
  4. date.c: Support iso8601 timezone formatsHaitao Li, Sep 7, 2011
  5. Junio C HamanoSep 7, 2011
  6. Haitao LiSep 8, 2011
  7. date.c: Support iso8601 timezone formatsHaitao Li, Sep 9, 2011
  8. Junio C HamanoSep 9, 2011
  9. Junio C HamanoSep 9, 2011
  10. Junio C HamanoSep 9, 2011
  11. Haitao LiSep 10, 2011
  12. Haitao LiSep 10, 2011

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.