Is there a way to get specific timezone without changing the default timezone? I tried to use this code to get the timezone but when I revert back its not different output.
echo '<br />'.date('Y-m-d H:i:s') . '<br />';
date_default_timezone_set('Australia/Melbourne');
echo '<br />' . date('Y-m-d H:i:s');
date_default_timezone_set('America/Chicago');
echo '<br />' . date('Y-m-d H:i:s');
Output: 2013-08-15 03:24:48 2013-08-15 13:24:48 2013-08-14 22:24:48
as the output the last row added a time.