I am trying to get the date and time formatted the way i want.. The problem is even though I get the right date the time comes out incorrectly..
If I echo $start_date
i get this result 2014-07-16T13:20:00+02:00
which has the correct time etc
and when I echo $start1_date
after my format the result is 11:20 Wed 16 Jul 2014
which has the time 2hrs behind.. I am using wordpress and have set settings to Johannesburg in the backend.. This date is from the timely calendar plugin. How do i get the correct time to show? Thanks guys..
$start_date = $instance->get( 'start' );
$start1_date = date(' g:i D d M Y' , strtotime($start_date) );