shithub: werc

Download patch

ref: a1eb9e2416d8c696426da3005385a0c1346c560c
parent: 8149c041c4120eaef7dbc8fa5c4879e136adaba5
author: uriel <[email protected]>
date: Sat Dec 20 17:36:25 EST 2008

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.

--- a/bin/cgilib.rc
+++ b/bin/cgilib.rc
@@ -254,7 +254,7 @@
     }
     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) ' )*'
 }
 
 
--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -212,6 +212,7 @@
 master_template=default_master.tpl
 sidebar=sidebar
 baseuri=http://$site/
+current_date_time=`{date}
 for(i in siteTitle siteSubTitle pageTitle extraHeaders)
     $i = ''