There is an official fix from Microsoft regarding the SharePoint 2007 Service Pack 2 expiration date issue. This fix can be applied either before or after the installation of Service Pack 2.
For all the details and the download the fix, visit http://support.microsoft.com/kb/971620