Skip to content

Commit

Permalink
gitweb: correct month in date display for atom feeds
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Vincent Zanotti authored and Junio C Hamano committed Nov 10, 2007
1 parent d048a96 commit a62d6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ sub parse_date {
$date{'mday-time'} = sprintf "%d %s %02d:%02d",
$mday, $months[$mon], $hour ,$min;
$date{'iso-8601'} = sprintf "%04d-%02d-%02dT%02d:%02d:%02dZ",
1900+$year, $mon, $mday, $hour ,$min, $sec;
1900+$year, 1+$mon, $mday, $hour ,$min, $sec;

$tz =~ m/^([+\-][0-9][0-9])([0-9][0-9])$/;
my $local = $epoch + ((int $1 + ($2/60)) * 3600);
Expand Down

0 comments on commit a62d6d8

Please sign in to comment.