I have a string which contains the date/time in it and i know its currently in Australia/Sydney timezone.
I now need to change it to GMT time.
I tried this, but its not changing the date:
$dateString = '2012-06-29 11:09:12'; // this is in Australia/Sydney timezone
$gmtDate = gmdate('Y-m-d H:i:s', strtotime($dateString));
print_r($gmtDate); // output is 2012-06-29 11:09:12
How do I subtract the offset somehow from gmt, sorry, getting a little confused.