Change mysql NOW() to php date

In case of DB and PHP on the different timezone, e.g. different setting
or different server, using NOW() will cause problem.