diff options
author | Vincent Zanotti <vincent.zanotti@m4x.org> | 2007-11-10 21:55:27 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-10 23:47:16 +0300 |
commit | a62d6d84c67cebd71e8d88171a2ebe0bf3aca8a0 (patch) | |
tree | 3da08f54c7f96b54191b0d74e635bbac9eb26d81 /gitweb/gitweb.perl | |
parent | d048a96ee9bec968be0bdc9c43ffce61169545be (diff) |
gitweb: correct month in date display for atom feeds
Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 3064298f28..9deefce0a6 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); |