aboutsummaryrefslogtreecommitdiff
path: root/timepollhead.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-06-01 09:13:06 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-06-01 09:13:06 +0200
commit8473add34098228f67ae33cd90e905fc83e2c5e6 (patch)
treeeb769ba6ad693d9b874638397ec18cc7f7e5979a /timepollhead.rb
parent36ee7ca7c1e39bc0e0bc185ef2188795bbf0ac3f (diff)
bugfix: wrong locale caused exception
Diffstat (limited to 'timepollhead.rb')
-rw-r--r--timepollhead.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/timepollhead.rb b/timepollhead.rb
index 14f2339..56a85db 100644
--- a/timepollhead.rb
+++ b/timepollhead.rb
@@ -120,7 +120,7 @@ class TimePollHead
ret = "<tr><th class='invisible'></th>"
head_count("%Y-%m",false).each{|title,count|
year, month = title.split("-").collect{|e| e.to_i}
- ret += "<th colspan='#{count}'>#{Date::DATE_TEXTS[Date_locale.get_language_key(Locale.current)][:abbr_monthnames][month]} #{year}</th>\n"
+ ret += "<th colspan='#{count}'>#{Date.parse("#{year}-#{month}-01").strftime("%b %Y")}</th>\n"
}
ret += "<th class='invisible'></th></tr><tr><th class='invisible'></th>"