If i do
$time = strtotime( '2013-3-16 11:40:00 US/Eastern' );
echo $time;
$time is false. The string is generated programmatically so i could alter the timezone to a supported one, what should i use?
If i do
$time = strtotime( '2013-3-16 11:40:00 US/Eastern' );
echo $time;
$time is false. The string is generated programmatically so i could alter the timezone to a supported one, what should i use?
I think this should work:
$time = DateTime::createFromFormat('Y-n-j H:i:s',
'2013-3-16 11:40:00', new DateTimeZone('US/Eastern'));
print $time->getTimestamp();