What I suspect is that your internal date calculation is not getting translated correctly from binary back into text. Maybe that idea is wrong. Could be. But then again, it seems to match up. Print the URL for the dates that are failing.
Comment on Re^3: Connection Timeout duing form submissions