# HG changeset patch # User Tero Marttila # Date 1234181239 -7200 # Node ID e909bde831e7b53c56119b07ba24b741ee9386a8 # Parent 72edbbb414a705da050cc7c66d9c2ca0f906ab86 fix index.tmpl, and change tz_name to %Z%z format diff -r 72edbbb414a7 -r e909bde831e7 helpers.py --- a/helpers.py Mon Feb 09 13:45:06 2009 +0200 +++ b/helpers.py Mon Feb 09 14:07:19 2009 +0200 @@ -18,7 +18,7 @@ Returns a string describing the given timezone """ - return str(tz) + return self.now().strftime("%Z%z") def fmt_month (self, date) : """ diff -r 72edbbb414a7 -r e909bde831e7 templates/channel.tmpl --- a/templates/channel.tmpl Mon Feb 09 13:45:06 2009 +0200 +++ b/templates/channel.tmpl Mon Feb 09 14:07:19 2009 +0200 @@ -51,5 +51,5 @@ ${next.body()} <%def name="footer_right()"> - All times are in ${h.tz_name(prefs['timezone'])} + All times are in ${h.tz_name(prefs['timezone'])} diff -r 72edbbb414a7 -r e909bde831e7 templates/index.tmpl --- a/templates/index.tmpl Mon Feb 09 13:45:06 2009 +0200 +++ b/templates/index.tmpl Mon Feb 09 14:07:19 2009 +0200 @@ -4,7 +4,7 @@ diff -r 72edbbb414a7 -r e909bde831e7 templates/preferences.tmpl --- a/templates/preferences.tmpl Mon Feb 09 13:45:06 2009 +0200 +++ b/templates/preferences.tmpl Mon Feb 09 14:07:19 2009 +0200 @@ -13,6 +13,7 @@ ${tz_name} % endfor + (${h.tz_name(prefs['timezone'])})