From: Chris Rorvick <chris@rorvick.com>
To: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: What's cooking in git.git (Oct 2012, #09; Mon, 29)
Date: Thu, 1 Nov 2012 20:12:20 -0500 [thread overview]
Message-ID: <CAEUsAPb7hUViLn7V7v65r6mOqRHr+180ynRX8K9t3nuJVyePfg@mail.gmail.com> (raw)
In-Reply-To: <5092C234.9000307@ramsay1.demon.co.uk>
On Thu, Nov 1, 2012 at 1:40 PM, Ramsay Jones <ramsay@ramsay1.demon.co.uk> wrote:
> Jeff King wrote:
>> What's cooking in git.git (Oct 2012, #09; Mon, 29)
>> --------------------------------------------------
>>
>
> [snip]
>
>> * cr/cvsimport-local-zone (2012-10-16) 1 commit
>> - git-cvsimport: allow author-specific timezones
>>
>> Allows "cvsimport" to read per-author timezone from the author info
>> file.
>>
>> Will merge to 'next'.
>
> Just FYI, t9604-cvsimport-timestamps.sh is still failing for me.
>
> I haven't spent too long on this yet, but I had hoped that setting
> TZ would sidestep any DST issues. (I have downloaded new tzdata, but
> have yet to install - actually I don't really want to!). It is not
> clear from the tzset manpage what happens if you use the DST format
> for TZ, but you don't provide the start/end date for DST, which is
> what this test is doing.
>
> Perhaps the test should use the non-DST format? e.g. "TZ=CST6 git ..."
> Does the test really care about DST? (*if* that is indeed the problem).
It actually looks like your TZ database is fine and the problem is
with the conversion to a struct tm. In each case, the time is
localized to the previous TZ value while the offset for the current TZ
value. For example, look at the first commit in the first test. It
converted the timestamp to 18:00 (CST6) while all the rest came
through as expected. I suspect the previous version of cvsimport
would exhibit similar behavior with the first imported commit. What
is your platform?
> Also: Note that the first test calls git-cvsimport twice, first *with*
> TZ set then again without; I suspect a cut/paste editing error.
Oops. The second invocation should have no effect on the repo so the
unit test is still valid, but that was a mistake for sure. Thanks.
Chris
next prev parent reply other threads:[~2012-11-02 1:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 10:21 What's cooking in git.git (Oct 2012, #09; Mon, 29) Jeff King
2012-11-01 18:40 ` Ramsay Jones
2012-11-02 1:12 ` Chris Rorvick [this message]
2012-11-02 9:43 ` Jeff King
2012-11-02 9:56 ` Jeff King
2012-11-02 21:33 ` Ramsay Jones
2012-11-04 12:29 ` Jeff King
2012-11-10 18:33 ` Ramsay Jones
2012-11-11 17:41 ` Jeff King
2012-11-13 18:47 ` Ramsay Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEUsAPb7hUViLn7V7v65r6mOqRHr+180ynRX8K9t3nuJVyePfg@mail.gmail.com \
--to=chris@rorvick.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=ramsay@ramsay1.demon.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).