I use this command in Git Bash:
git log -1 --date=local --pretty=format:'%ad' ce40c0f8f02e83892eb185aabea306ee2a3ab10e
I want to display the date in local time zone AND as DD-MMM-YYYY HH:MM:SS
.
It seems I can either change the time zone to local (--date=local
) or change the format (--date=format:'%d %b %Y %H:%M:%S'
), but cannot seem to do both together.