Subtracted 3 hours when save in db MySQL

I get birthday from facebook, my birthday is 1993/01/18 00:00:00, when save in database, the date is subtracted 3 hours, as a consequence subtracted one day -> 1993/01/17 21:00:00, I received date from my app android, i checked and the date arrives correctly in my server, i debug before and after To be sure.
The error occurs when the save with RegistryTable

I got the same error before. In my case was a matter of execute this line


You should put it in bootstrap.php and of course, search the proper value to your date_default_timezone_set.