From 4de71445d3d174b5ef3462a1c4470a95cc00017e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 19 Jun 2015 20:13:31 +0200 Subject: Daily page: date format in template It only concerns the date of the day in the main title. Fixes #182 Note that daily RSS feed is not generated through templates. Date are still hard formatted in that case. --- index.php | 2 +- tpl/daily.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 9561f63b..7e94fd24 100644 --- a/index.php +++ b/index.php @@ -1228,7 +1228,7 @@ function showDaily() $PAGE->assign('linksToDisplay',$linksToDisplay); $PAGE->assign('linkcount',count($LINKSDB)); $PAGE->assign('cols', $columns); - $PAGE->assign('day',utf8_encode(strftime('%A %d, %B %Y',linkdate2timestamp($day.'_000000')))); + $PAGE->assign('day',linkdate2timestamp($day.'_000000')); $PAGE->assign('previousday',$previousday); $PAGE->assign('nextday',$nextday); $PAGE->renderPage('daily'); diff --git a/tpl/daily.html b/tpl/daily.html index 919795bb..0f762490 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -13,7 +13,7 @@ rss_feedDaily RSS Feed
floral_left The Daily Shaarli floral_right
-
——————————— {$day} ———————————
+
——————————— {function="strftime('%A %d, %B %Y', $day)"} ———————————
{if="$linksToDisplay"} -- cgit v1.2.3