diff --git a/src/REMOTEDATA/RemoteDataCenterClass.php b/src/REMOTEDATA/RemoteDataCenterClass.php index cb8fe4f..da08880 100644 --- a/src/REMOTEDATA/RemoteDataCenterClass.php +++ b/src/REMOTEDATA/RemoteDataCenterClass.php @@ -30,6 +30,7 @@ abstract class RemoteDataCenterClass { $this->baseID = get_class($this); $this->location = RemoteData."/bases/".$this->baseID; + date_default_timezone_set('UTC'); } /* Function to change External Bases stuff in case of existing AMDA aliases. diff --git a/src/REMOTEDATA/THEMIS.php b/src/REMOTEDATA/THEMIS.php index b220cff..ff3319b 100644 --- a/src/REMOTEDATA/THEMIS.php +++ b/src/REMOTEDATA/THEMIS.php @@ -8,26 +8,26 @@ class THEMIS extends RemoteDataCenterClass { // /THEMIS_B1/themisdata - protected $baseMgr; + protected $baseMgr; protected $domTemplate; - + protected $xmlTemplate; public function init() { error_log("THEMIS Proxy creation on ".date("Y-m-d\TH:i:s").PHP_EOL,3,log); error_log("THEMIS Proxy creation on ".date("Y-m-d\TH:i:s").PHP_EOL,3,err); - + $this->xmlTemplate = strval(RemoteData).ThemisConfigClass::$TemplateXml; } protected function getRemoteTree() { - if (!file_exists(ThemisConfigClass::$TemplateXml)) { + if (!file_exists($this->xmlTemplate)) { error_log('Cannot find THEMIS tree template'.PHP_EOL,3,err); exit('Cannot find THEMIS tree template'); } $this->domTemplate = new DomDocument("1.0"); - if (!$this->domTemplate->load(ThemisConfigClass::$TemplateXml)) { + if (!$this->domTemplate->load($this->xmlTemplate)) { error_log('Cannot load THEMIS tree template'.PHP_EOL,3,err); exit('Cannot load THEMIS tree template'); } diff --git a/src/REMOTEDATA/ThemisConfigClass.php b/src/REMOTEDATA/ThemisConfigClass.php index 538a8fa..30f0ab1 100644 --- a/src/REMOTEDATA/ThemisConfigClass.php +++ b/src/REMOTEDATA/ThemisConfigClass.php @@ -14,7 +14,7 @@ class ThemisConfigClass public static $level = "l2"; public static $format = "cdf"; public static $themis = array('A'); //, 'B', 'C', 'D', 'E'); - public static $TemplateXml = RemoteData."/ThemisTreeTemplate.xml"; + public static $TemplateXml = "/ThemisTreeTemplate.xml"; public static $START_YEAR = "2007"; public static $program = array('peim' => 'themis_esamom2nc', 'peem' => 'themis_esamom2nc', 'peif' => 'themis_esa2nc', 'peef' => 'themis_esa2nc', -- libgit2 0.21.2