Re: Odd broken "--date=now" behavior in current git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Torvalds:

I can't be the only one seeing this? My guess is that there's a missing initialization of tm.tm_isdst somewhere or whatever.

I can confirm it if I enable DST on my machine (I usually run my machines on CET all-year, to avoid these kind of issues):

  $ echo $TZ
  Europe/Oslo
  $ git commit -m b
  [master dee7ec1] b
   1 file changed, 1 insertion(+)
   create mode 100644 b.txt
  $ git show --pretty=fuller
  commit dee7ec1cda74a8abd7f26c60ee1e83f73bb31194 (HEAD -> master)
  Author:     Peter Krefting <peter.krefting@xxxxxxxxxxxxx>
  AuthorDate: 2015-04-15 09:04:34 +0200
  Commit:     Peter Krefting <peter.krefting@xxxxxxxxxxxxx>
  CommitDate: 2015-04-15 09:04:34 +0200
  [...]
  $ git commit --amend --date=now
  [...]
  $ git show --pretty=fuller
  commit b4561e5a077de7bbcaf9fc06350ea24407adcec0 (HEAD -> master)
  Author:     Peter Krefting <peter.krefting@xxxxxxxxxxxxx>
  AuthorDate: 2015-04-15 08:05:04 +0100
  Commit:     Peter Krefting <peter.krefting@xxxxxxxxxxxxx>
  CommitDate: 2015-04-15 09:05:04 +0200

So the datetime is correct, it's just the timezone that is wrong (08:05+0100 = 09:05+0200).

  $ git --version
  git version 2.4.0.rc1

--
\\// Peter - http://www.softwolves.pp.se/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]