From c10a7b7db1301302b183a68e078c9260e5248dca Mon Sep 17 00:00:00 2001 From: Uriel Date: Sat, 20 Dec 2008 22:36:25 +0100 Subject: [PATCH] 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. --- bin/cgilib.rc | 2 +- bin/werc.rc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cgilib.rc b/bin/cgilib.rc index e17ad36..add3b7d 100644 --- a/bin/cgilib.rc +++ b/bin/cgilib.rc @@ -254,7 +254,7 @@ fn gen_blog_post_title { } if not if(~ $#blogDirs 1) by='By '$du(4) - echo '##' $"title^' *( '$by Last mod: $du(7 8 9) ' )*' + echo '##' $"title^' *( '$by Last mod: $du(7 8 9) $current_date_time(5) ' )*' } diff --git a/bin/werc.rc b/bin/werc.rc index 740981a..14667d4 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -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 = ''