2

I want to set timezone to tig http://jonas.nitro.dk/tig/, and I want to use Japanese timezone(+0900) in all commit, even if commiter has another timezone.

Can I set specific timezone?

Actual:
Thu Oct 11 01:07:31 2012 -0700
Expect:
Thu Oct 11 17:07:31 2012 +0900
Mat
  • 202,337
  • 40
  • 393
  • 406
Matt - sanemat
  • 5,418
  • 8
  • 37
  • 41

3 Answers3

1

Add the following line to your ~/.tigrc file:

set show-date = local
Jonas Fonseca
  • 1,811
  • 15
  • 15
1

What worked for me (tig 2.5.4) was:

Add this line to ~/.tigrc:

set main-view-date-local = true
Doppelganger
  • 20,114
  • 8
  • 31
  • 29
0

Any time display seems to be build from the mkdate() function, which compute the date in one of 5 modes (NO, DEFAULT, LOCAL, RELATIVE, SHORT).

So any display modification should be coded in that function.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks, but how do i do next? Add ```patch``` and ```make``` at local machine? – Matt - sanemat Oct 30 '12 at 07:52
  • @sanemat If by "patch" and "make", you mean patch Tig and build it locally, in order to get the right time display you want, then it could be a workaround. – VonC Oct 30 '12 at 08:10