forked from jonas/tig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix jonas#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 jonas#811
- Loading branch information
1 parent
970c1b7
commit 8803f3c
Showing
52 changed files
with
1,288 additions
and
1,195 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.