简体   繁体   English

如何在tig中设置时区?

[英]How to set timezone in tig?

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. 我想将时区设置为tig http://jonas.nitro.dk/tig/ ,并且即使提交者具有另一个时区,我也想在所有提交中使用日语时区(+0900)。

Can I set specific timezone? 我可以设置特定的时区吗?

Actual:
Thu Oct 11 01:07:31 2012 -0700
Expect:
Thu Oct 11 17:07:31 2012 +0900

~/.tigrc添加到您的~/.tigrc文件中:

set show-date = local

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 ). 任何时间的显示似乎都是由mkdate()函数构建的,该函数 以5种模式之一NODEFAULTLOCALRELATIVESHORT )计算日期。

So any display modification should be coded in that function. 因此,任何显示修改都应在该函数中进行编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM