O'Reilly logo
  • Melinda Ralston thinks this is interesting:

In this example, the condition will be true. The DateTime class handles the tricky conversions needed to compare across timezones for us.


Cover of Zend PHP 5 Certification Study Guide


For this example, when setting timezone, use \DateTimeZone("Europe/Amsterdam") instead of DateTime("Europe/Amsterdam"). '