【发布时间】:2012-10-12 04:21:24
【问题描述】:
我想将时区设置为 tig http://jonas.nitro.dk/tig/,并且我想在所有提交中使用日本时区(+0900),即使提交者有另一个时区。
我可以设置特定的时区吗?
Actual:
Thu Oct 11 01:07:31 2012 -0700
Expect:
Thu Oct 11 17:07:31 2012 +0900
【问题讨论】:
我想将时区设置为 tig http://jonas.nitro.dk/tig/,并且我想在所有提交中使用日本时区(+0900),即使提交者有另一个时区。
我可以设置特定的时区吗?
Actual:
Thu Oct 11 01:07:31 2012 -0700
Expect:
Thu Oct 11 17:07:31 2012 +0900
【问题讨论】:
将以下行添加到您的 ~/.tigrc 文件中:
set show-date = local
【讨论】:
任何时间显示似乎都是从mkdate() function 构建的,它计算one of 5 modes 中的日期(NO、DEFAULT、LOCAL、RELATIVE、SHORT)。
因此,任何显示修改都应在该函数中编码。
【讨论】:
patch 和make?
对我有用的(tig 2.5.4)是:
将此行添加到~/.tigrc:
set main-view-date-local = true
【讨论】: