Drupal newbie question. I am trying to insert the current date / time into an SQL database as a unix timestamp. It works in that I don't get an error message, but it just inserts the same value every time (2147483647). I am working on a local host (if that matters) 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');
source
share