Add timezone to blog posts date, thanks to dho for the original patch.
Used the opportunity to provide the current date/time info in $current_date_time for any other similar uses.
This commit is contained in:
parent
f6874376c1
commit
c10a7b7db1
2 changed files with 2 additions and 1 deletions
|
|
@ -254,7 +254,7 @@ fn gen_blog_post_title {
|
|||
}
|
||||
if not if(~ $#blogDirs 1)
|
||||
by='By '$du(4)
|
||||
echo '##<a href="'^$"permlink^'">' $"title^'</a> *( '$by Last mod: $du(7 8 9) ' )*'
|
||||
echo '##<a href="'^$"permlink^'">' $"title^'</a> *( '$by Last mod: $du(7 8 9) $current_date_time(5) ' )*'
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -212,6 +212,7 @@ headers=lib/headers.tpl
|
|||
master_template=default_master.tpl
|
||||
sidebar=sidebar
|
||||
baseuri=http://$site/
|
||||
current_date_time=`{date}
|
||||
for(i in siteTitle siteSubTitle pageTitle extraHeaders)
|
||||
$i = ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue