From bec18701801cc140d760c261dd115fda1507a0dd Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 12 Mar 2015 21:57:19 +0100 Subject: Define date format in templates instead of index.php. --- tpl/daily.html | 2 +- tpl/dailyrss.html | 2 +- tpl/linklist.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tpl') diff --git a/tpl/daily.html b/tpl/daily.html index c53e6f71..919795bb 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -30,7 +30,7 @@ {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
- {$link.localdate} + {function="strftime('%c', $link.timestamp)"}
{/if} {if="$link.tags"} diff --git a/tpl/dailyrss.html b/tpl/dailyrss.html index 436e1cd2..926704f4 100644 --- a/tpl/dailyrss.html +++ b/tpl/dailyrss.html @@ -1,6 +1,6 @@ {loop="links"}

{$value.title|htmlspecialchars}

- {if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{$value.localdate|htmlspecialchars} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}
+ {if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp|htmlspecialchars)"} - {/if}{if="$value.tags"}{$value.tags|htmlspecialchars}{/if}
{$value.url|htmlspecialchars}

{if="$value.thumbnail"}{$value.thumbnail}{/if}
{if="$value.description"}{$value.formatedDescription}{/if} diff --git a/tpl/linklist.html b/tpl/linklist.html index 353eca52..766a80ce 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -44,7 +44,7 @@
{if="$value.description"}
{$value.description}
{/if} {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} - {$value.localdate|htmlspecialchars} - permalink - + {function="strftime('%c', $value.timestamp)"} - permalink - {else} permalink - {/if} @@ -53,7 +53,7 @@ {/if} - + QR-Code - {$value.url|htmlspecialchars}
{if="$value.tags"}
-- cgit v1.2.3