diff --git a/build/router/controller/page.php b/build/router/controller/page.php index d5765d7..550c04f 100644 --- a/build/router/controller/page.php +++ b/build/router/controller/page.php @@ -7,15 +7,12 @@ class page{ - private $pagename; - /* PRE-CALL * * @url Calling URI * */ public function __construct($url){ - $this->pagename = $url['page']; } diff --git a/build/service/CalendarExtractor.php b/build/service/CalendarExtractor.php index 64ba136..5351e90 100644 --- a/build/service/CalendarExtractor.php +++ b/build/service/CalendarExtractor.php @@ -241,7 +241,14 @@ } - return "${day}T$hour${min}00"; + + /* [3] Convert to UTC (+0) + =========================================================*/ + /* (1) Get local timestamp */ + $ts = strtotime("${day} $hour:$min:00"); + + /* (2) Return UTC date */ + return gmdate("Ymd\THis", $ts); } @@ -276,8 +283,8 @@ ---------------------------------------------------------*/ foreach($events as $start_t=>$stop_t){ $RAW .= "BEGIN:VEVENT\n"; - $RAW .= "DTSTART;TZID=Europe/Paris:$start_t\n"; - $RAW .= "DTSTOP;TZID=Europe/Paris:$stop_t\n"; + $RAW .= "DTSTART:$start_t\n"; + $RAW .= "DTSTOP:$stop_t\n"; $RAW .= "SUMMARY:$type\n"; $RAW .= "END:VEVENT\n\n"; } diff --git a/build/service/Config.php b/build/service/Config.php index 09bc6b1..f47028c 100644 --- a/build/service/Config.php +++ b/build/service/Config.php @@ -218,7 +218,6 @@ if( is_null(( $p_list = json_decode($p_list, true) )) ) throw new \Exception("Cannot parse periods list"); - }