home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / bug967.php < prev    next >
Encoding:
PHP Script  |  2004-03-24  |  397 b   |  15 lines

  1. <?php
  2. require_once 'Date.php';
  3. $_DATE_TIMEZONE_DEFAULT = 'Pacific/Chatham';
  4. $tz = Date_TimeZone::getDefault();
  5. if ($tz->id!=$_DATE_TIMEZONE_DEFAULT && $tz->id!='Pacific/Chatham') {
  6.     echo "setDefault Failed\n";
  7. }
  8. Date_TimeZone::setDefault('CST');
  9. $default = 'EST';
  10. $tz = Date_TimeZone::getDefault();
  11. if ($tz->id!=$_DATE_TIMEZONE_DEFAULT && $tz->id!='EST') {
  12.     echo "setDefault Failed\n";
  13. }
  14. ?>
  15.