How to set timezone in tig?

737 Views Asked by At

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
3

There are 3 best solutions below

2
On

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.

0
On

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

set show-date = local
0
On

What worked for me (tig 2.5.4) was:

Add this line to ~/.tigrc:

set main-view-date-local = true