I have tried this:
date_default_timezone_set('America/Los_Angeles');
echo $starttime = date("m/d/Y H:i:s");
echo $endtime = date("m/d/Y H:i:s", strtotime('+3 hours', strtotime($startdate)));
// Output
06/14/2014 04:23:25
06/14/2014 07:23:25
// It should be
06/14/2014 01:23:25
06/14/2014 04:23:25
but it shows +3 hours from PDT time. I have read Pacific Time Zones here but I'm still unable to show time according to PDT.
One approach could be to subtract 3 hours from the time but isn't there any way to do it like this:
date_default_timezone_set('<PDT_Time>');