/** * Prepare datas for News preview panel * * @param Template $t */ private function prepareDatasForNewsPanel(Template $t) { $newsService = new NewsService(); $t->newsPreviewList = $newsService->search(true, false, 0, $this->newsPreviewCount); //$date = new DateTimeFrench("now",new DateTimeZone('UTC')); $date = new DateTimeCustom(DateTimeCustom::NOW); $t->newsPreviewDate = $date->format("d F"); $t->newsFileLocation = News::fileDefaultLocation; return $t; }