+ public function getGeckoTime() {
+ if (!isset($this->uadata['geckotime'])) {
+ $this->uadata['geckotime'] = null;
+ if (!is_null($this->getGeckoDate())) {
+ $use_time = (strlen($this->getGeckoDate()) > 8);
+ $gd_str = substr($this->getGeckoDate(),0,4).'-'.substr($this->getGeckoDate(),4,2).'-'.substr($this->getGeckoDate(),6,2);
+ if ($use_time) {
+ $gd_str .= substr($this->getGeckoDate(),8,2).':00';
+ $old_tz = date_default_timezone_get();
+ date_default_timezone_set("America/Los_Angeles");
+ }
+ $this->uadata['geckotime'] = strtotime($gd_str);
+ if ($use_time) { date_default_timezone_set($old_tz); }
+ }
+ }
+ return $this->uadata['geckotime'];
+ }
+