:format:%s for date fields seems to be shifted by timezone

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

 



Hello!

my current timezone is UTC+0200.

I create a test repo, add one commit and create a tag:

Now:

$  git for-each-ref --format="%(taggerdate:format:%s)" refs/tags
1588504146

$ date +"%s"
1588500585

$  git for-each-ref --format="%(taggerdate:raw)" refs/tags
1588500546 +0200

Somehow %(taggerdate:format:%s) gives a Unix timestamp which is one
hour in future and it is different than what ` date +"%s"` gives
around approximately the same time the tag was created.

clime



[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]

  Powered by Linux