} /** * Returns the DST short name for this time zone, i.e. "CDT" */ public function getDSTShortName() { return $this->dstshortname; } /** * Returns the raw (non-DST-corrected) offset from UTC/GMT for this time zone */ public function getRawOffset() { return $this->offset; } } $GLOBALS['_DATE_TIMEZONE_DATA'] = array('UTC' => array('offset' => 0, 'longname' => "Coordinated Universal Time", 'shortname' => 'UTC', 'hasdst' => false), ); if (isset($_DATE_TIMEZONE_DEFAULT) && DateTimeZone::isValidId($_DATE_TIMEZONE_DEFAULT)) DateTimeZone::setDefault($_DATE_TIMEZONE_DEFAULT); else DateTimeZone::setDefault('UTC'); ?>