git commit -m "$(date)"
-> is displaying in UTC, but how to get preferred time zone?
I wanted to get preferred timezone in git commit
.
CodePudding user response:
Strange, considering I always see my commits using my local timezone.
Meaning you do not need to include date
output in the commit message itself.
But you can set the TZ
environment variable, as seen here to benefit from a display using your timezone.
export TZ=CET git show -s --format=