aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/linklist.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-07 14:30:42 +0100
committerArthurHoaro <arthur@hoa.ro>2017-03-06 21:11:12 +0100
commit52b503105d389d1796698114573ff618b2ad34a2 (patch)
treed636098fe0864db98c175cd7dfda19a1c069eb82 /tpl/default/linklist.html
parent1255a42cfed9ce419962c6cf29181a66c7e22bb8 (diff)
downloadShaarli-52b503105d389d1796698114573ff618b2ad34a2.tar.gz
Shaarli-52b503105d389d1796698114573ff618b2ad34a2.tar.zst
Shaarli-52b503105d389d1796698114573ff618b2ad34a2.zip
Improve datetime display
Use php-intl extension to display datetimes a bit more nicely, depending on the locale. What changes: * the day is no longer displayed * day number and month are ordered according to the locale * the timezone is more readable (UTC+1 instead of CET)
Diffstat (limited to 'tpl/default/linklist.html')
-rw-r--r--tpl/default/linklist.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html
index a9712704..9bc3ba1a 100644
--- a/tpl/default/linklist.html
+++ b/tpl/default/linklist.html
@@ -171,10 +171,11 @@
171 <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1"> 171 <div class="linklist-item-infos-dateblock pure-u-lg-3-8 pure-u-1">
172 <a href="?{$value.shorturl}" title="{'Permalink'|t}"> 172 <a href="?{$value.shorturl}" title="{'Permalink'|t}">
173 {if="!$hide_timestamps || isLoggedIn()"} 173 {if="!$hide_timestamps || isLoggedIn()"}
174 {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} 174 {$updated=$value.updated_timestamp ? 'Edited: '. format_date($value.updated) : 'Permalink'}
175 <span class="linkdate" title="{$updated}"> 175 <span class="linkdate" title="{$updated}">
176 <i class="fa fa-clock-o"></i> 176 <i class="fa fa-clock-o"></i>
177 {function="strftime('%c', $value.timestamp)"}{if="$value.updated_timestamp"}*{/if} 177 {$value.created|format_date}
178 {if="$value.updated_timestamp"}*{/if}
178 &middot; 179 &middot;
179 </span> 180 </span>
180 {/if} 181 {/if}