From: Vincent Zanotti Date: Sat, 10 Nov 2007 18:55:27 +0000 (+0100) Subject: gitweb: correct month in date display for atom feeds X-Git-Tag: v1.5.3.6~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a62d6d84c67cebd71e8d88171a2ebe0bf3aca8a0;p=git.git gitweb: correct month in date display for atom feeds Signed-off-by: Vincent Zanotti Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 3064298f2..9deefce0a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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);