PHP use CURRENT_TIMESTAMP from eastern time zone

bravejava

New Member
I have a query that looks like:\[code\]$query = "INSERT INTO `SmsServ`.`SmsReceived` ( `Id` , `Body` , `DateReceived`)VALUES ( NULL , "Foo" , CURRENT_TIMESTAMP);"\[/code\]The problem with that query is that I will like to have eastern time as the time stamp. I have tried calling:\[code\]date_default_timezone_set("America/New_York");\[/code\]At the begining of my php script but that still gives an incorrect time stamp.
 
Back
Top