Skip Menu |

This queue is for tickets about the DBD-XBase CPAN distribution.

Report information
The Basics
Id: 24970
Status: new
Priority: 0/
Queue: DBD-XBase

Owner: Nobody in particular
Requestors: dam [...]

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

Subject: and the problem "year 2100"
Date: Thu, 15 Feb 2007 15:08:57 +0200
To: bug-DBD-XBase [...]
From: Damyan Ivanov <dam [...]>
Download (untitled) / with headers
text/plain 785b
Hi, DBD::XBase version is 0.241 (debian package 1:0.241-4) Looking at some "Use of uninitialized value in print...", coming from XBase (see #24967), I've found what it seems to be a code, suffering from "year 2100 problem". See for yourself: line 666 of (sub update_last_change) is: my ($y, $m, $d) = (localtime)[5, 4, 3]; $m++; $y -= 100 if $y >= 100; The tricky part is "$y -= 100 if $y >= 100". This makes $y to be greater than 99 after year 2099. I think it is better to replace it with simple "$y %= 100"; Thanks for writing DBD::XBase, dam -- Damyan Ivanov Modular Software Systems phone +359(2)928-2611, 929-3993 fax +359(2)920-0994 mobile +359(88)856-6067

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

Please report any issues with to