<?xml version="1.0" encoding="ISO-8859-1"?>
<slide>
  <title>Updating the Timezone</title>

  <blurb>Using the timezone when parsing a string with a date representation:</blurb>
  <example result="1"><![CDATA[<?php
  $tz1 = new DateTimeZone("Pacific/Honolulu");
  $tz2 = new DateTimeZone("Australia/Melbourne");

  $ts = new DateTimeImmutable("1978-12-22 09:15", $tz1);
  echo $ts->getTimezone()->getName(), ':    ',
    $ts->format(DateTime::RFC2822), "<br/>";

  $melbourne = $ts->setTimezone($tz2);

  echo $melbourne->getTimezone()->getName(), ': ',
    $melbourne->format(DateTime::RFC2822), "<br/>";
?>]]></example>
</slide>
