projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60ace87
)
format-patch: pretty-print timestamp correctly.
author
Junio C Hamano
<junkio@cox.net>
Wed, 22 Feb 2006 02:13:32 +0000
(18:13 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 22 Feb 2006 02:13:32 +0000
(18:13 -0800)
Perl is not C and does not truncate the division result. Arghh!
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-format-patch.sh
patch
|
blob
|
history
diff --git
a/git-format-patch.sh
b/git-format-patch.sh
index
e54c9e4
..
eb75de4
100755
(executable)
--- a/
git-format-patch.sh
+++ b/
git-format-patch.sh
@@
-189,7
+189,7
@@
my @month_names = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
sub show_date {
my ($time, $tz) = @_;
my $minutes = abs($tz);
- $minutes = ($minutes / 100) * 60 + ($minutes % 100);
+ $minutes =
int
($minutes / 100) * 60 + ($minutes % 100);
if ($tz < 0) {
$minutes = -$minutes;
}