-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #428: Change date formatting to show timezones by default
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 #811
- Loading branch information
1 parent
f49fc7c
commit 7486358
Showing
52 changed files
with
1,517 additions
and
1,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7486358
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea to support timezones. For those who use tig on their (tiny) laptop screen and who changed the date format to date:custom in their .tigrc to keep only yyyy-mm-dd, it is worth mentioning in the release notes that to get the same result they should now use date:custom,format="%Y-%m-%d".