Need to parse out unix timestamp from these values -
Posted on 2012-03-21
On my old server, I had the code below that someone put together for me.
Now that I have updated to a new server with php5 it no longer works.
I need to take the values below and turn them into unix time.
This is a part of a much larger script, which figures timezones. It's not updating to dst, and this seems to be the root of the problem. Right now, if I echo '$dst_start', I get nothing.
Any ideas on how to do this?
//pulled out of db
$start_day= '2nd Sunday';
//put into unix time
$dst_start=strtotime($start_day." ".$start_hour.":00", strtotime("1 $start_month $start_year"));