Y2K Date Fix 1.0 Correct a Y2K bug that makes registration and posting dates such as 04/02/99 at 02:04:31 display as 04/02/37 at 02:04:31. This bug appears when importing old bulletin board messages from before 2000. YaBB was written in 2000, so pure YaBB boards will never have registrations or posts prior to 2000. YaBB stores only the last two digits of the year and assumes that the first two digits are 20. This fix limits 21st century dates to 2000-2059 and supports the 20th century dates 1960-1999. If you have an earlier source of messages, you can adjust the cutoff (and please tell me about your messages). This mod has been tested only on YaBB SP 1.4. Joel Shprentz mailto:jshprentz@his.com Sources/Subs.pl $oldmonth = substr($oldformat,0,2); $oldday = substr($oldformat,3,2); $oldyear = ("20".substr($oldformat,6,2)) - 1900; if ($oldyear > 159) { $oldyear -= 100 }; Sources/Profile.pl $oldformat = $date; $oldmonth = substr($oldformat,0,2); $oldday = substr($oldformat,3,2); $oldyear = ("20".substr($oldformat,6,2)) - 1900; if ($oldyear > 159) { $oldyear -= 100 };