From b66c5a4e02d9ef6627262f8174baeaf86eb183f2 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 10 Mar 2016 13:29:02 +0100 Subject: [PATCH] fix php error caused by blogFeatures function --- controller/classes/Subtemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/classes/Subtemplate.php b/controller/classes/Subtemplate.php index 2f927f3..e047fab 100644 --- a/controller/classes/Subtemplate.php +++ b/controller/classes/Subtemplate.php @@ -361,7 +361,7 @@ class Subtemplate { $postTitle = $feature->post_title; $url = get_permalink($feature->ID); $content = substr($feature->post_content, 0, 144) . '...'; - $date = date('F Y',$feature->post_date); + $date = date('F Y', strtotime($feature->post_date)); $image = wp_get_attachment_image_src(get_post_thumbnail_id($feature->ID),'blog-feature-crop')[0]; if ($page == "home") {