Skip to content

Instantly share code, notes, and snippets.

@tstachl
Created January 22, 2015 19:42
Show Gist options
  • Select an option

  • Save tstachl/357da98acadcbb9118c6 to your computer and use it in GitHub Desktop.

Select an option

Save tstachl/357da98acadcbb9118c6 to your computer and use it in GitHub Desktop.
<?php
$date = new DateTime('2015-01-21T20:34:53Z');
$date->setTimezone(new DateTimeZone('Pacific/Chatham'));
echo $date->format(DateTime::ISO8601);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment