I did this in php to store the lastlogin in a mysql datetime column
date(\'Y-m-d h:i:s\') //which then gave > \'2014-01-04 08:00:56\'
and th
Like Filip said it's probably a timezone issue; you can change the timezone of your script to whatever timezone your MySQL is set to like this:
date_default_timezone_set('America/Los_Angeles');