Skip Menu |
 

This queue is for tickets about the Rcs CPAN distribution.

Report information
The Basics
Id: 1305
Status: new
Priority: 0/
Queue: Rcs

People
Owner: Nobody in particular
Requestors: msacht [...] tek.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.04
Fixed in: (no value)



MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Subject: Perl Rcs Module: bug fix for revdate
Content-Type: multipart/mixed; boundary="----------=_1027041877-11244-3"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 612
Download (untitled) / with headers
text/plain 612b
I found a bug with the revdate class and a fix for it. The version I downloaded is Rcs-1.0. I'm using perl 5.0 with SunOS 5.8. revdate always returned -1. I noticed that 1900 was not subtracted from the year before being used in timegm function. I added the line "$year = $year - 1900;" to lines 273 (sub daterev) and line 923 (sub _parse_rcs_header) to Rcs.pm. Also I notices that in Rcs.pm the scalar date was created using timegm, but in the example of how to dereference the scaler, localtime was used instead of gmtime. This creates a 7 hour error in the returned time. Thank you, Michael Sachtjen.
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.