-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple timezones in git log #428
Comments
|
The issues: 1. timezone information is missing from non-local dates, e.g. "2018-04-09 15:15 +0800" is displayed as "2018-04-09 15:15" "2018-03-19 04:48 -0700" is displayed as "2018-03-19 04:48" 2. custom dates are formatting %z as "+0000" With this change: 1. Show timezone information by default for non-local dates using the format string "%Y-%m-%d %H:%M %z" 2. display the actual timezone when formatting "%z" instead of "+0000" [ jf: Updated the tests to match the new date formatting and fixed mkdate to replace %z and %Z with the timezone rather than passing it to strftime and expecting "+0000", which is not always the case. ] Closes jonas#811
This is still broken. I just wasted a day debugging something complex because I didn't notice that the one key commit was in a different timezone. What a joke. Git is so user-hostile, and for some reason people seem to love how terrible it is since it lets them seem smart at work when working around its horrible developer experience. |
It can work both ways:
|
When I have a repository where the commit timestamps come from different timezones the git log shown by tig get pretty confusing since it omits the time zones.
Could we somehow unify all show times to the users time zone (
git log --date=local
) ?The text was updated successfully, but these errors were encountered: