Drupal newbie question. I'm trying to insert the current date/time into a SQL database as a unix timestamp. It's working in that I'm not getting an error but it just inserts the same value every time (2147483647). I'm working on a localhost (if that makes a difference) and have tried the following, all to no avail:
format_date(strtotime('now'), 'custom', 'YYYY-MM-DD 00:00:00');
format_date(time(), 'custom', 'YYYY-MM-DD HH:MM:SS');
format_date(mktime(), 'custom', 'YYYY-MM-DD HH:MM:SS');