This is one of the possible ways:
$dt = new DateTime('2011-02-22 16:15:20', new DateTimeZone('America/New_York'));
echo $dt->format('r') . PHP_EOL;
$dt->setTimezone(new DateTimeZone('America/Chicago'));
echo $dt->format('r') . PHP_EOL;
You can get a list of available time zones with:
print_r(DateTimeZone::listIdentifiers());
source
share