Example #1
0
  public function convertToTimeZoneById($id)
  {
   if (DateTimeZone::isValidId($id))
    $tz = new DateTimeZone($id);
   else
    $tz = DateTimeZone::getDefault();

   $this->convertToTimeZone($tz);
  }
 static public function setDefault($id)
 {
   global $_DATE_TIMEZONE_DEFAULT;
   if (DateTimeZone::isValidId($id))
     $_DATE_TIMEZONE_DEFAULT = $id;
 }