How to set the correct local time zone in git bash?
问题 I am using git-bash on a Windows system. The Windows clock shows local time, but inside git-bash everything is in GMT time: $ date Mon Mar 31 16:08:57 GMT 2014 Also setting TZ will not change things: $ TZ="Europe/Berlin" date Mon Mar 31 16:09:01 GMT 2014 Similarly all times it git log are GMT only. Is there a way to set the correct timezone in git-bash? 回答1: On Windows the TZ variable seems to work differently. To get the German timezone you have to write: TZ=GST-1GDT date If you set it to