/** * Set timezone */ function setTimezone($val = 0) { return DateWrapper::getTimezone($val); }
/** * readDate reads a date from the amf message and returns the time in ms. * This method is still under development. * * @return long The date in ms. */ function readDate() { $ms = $this->readDouble(); // date in milliseconds from 01/01/1970 $int = $this->readInt(); // nasty way to get timezone if ($int > 720) { $int = -(65536 - $int); } $int *= -60; //$int *= 1000; //$min = $int % 60; //$timezone = "GMT " . - $hr . ":" . abs($min); // end nastiness //We store the last timezone found in date fields in the request //FOr most purposes, it's expected that the timezones //don't change from one date object to the other (they change per client though) DateWrapper::setTimezone($int); return $ms; }