mysql CURRENT_TIMESTAMP vs dadabik date_time_stamp

larryk

Well-known member
Hello,

I just noticed I'm inserting via database and inserting via my own sql, and the records for the same date field are 6 hours apart?

your thoughts on where to change what so both are same (in same time zone?)

thanks!
 

larryk

Well-known member
FYI.

// timezone, specify here your timezone (a list of available timezone here: http://php.net/manual/en/timezones.php)
$timezone = 'America/New_York';

if ( (double)phpversion() >= 5.1){
date_default_timezone_set($timezone);
}
 
Top