gotta love fixing/maintaining other people's code 🙂
On a side note in reponse to Tom:
I always use bigint's for storing datetimestamps. PHP's functions for formating them are fantastic, and if I want to do something with the date, then it's simply a matter of math. I can add an hour, 3600 seconds, add a day, 86400 seconds, etc. time() generates a timestamp, mktime() makes one from month/day/year info. date() make a unix timestamp into a human readable one, with many many options.
In sql UNIX_TIMESTAMP() evauluates to the current unix timestamp, and FROM_UNIXTIME(datetime) (I think that's what it's called) returns a human readable datetime from a unixtimstamp.
All of my code (and my company's code) uses bigint's to store datetime. I've been programming php this way for about 2.5 years and haven't had any regrets whatsoever.
But hey, use whatever works best for you, and what you're used to.