]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
last.fm plugin: removed year from event dates
authorRaine Virta <rane@kapsi.fi>
Sun, 15 Feb 2009 23:05:35 +0000 (01:05 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 16 Feb 2009 19:50:11 +0000 (20:50 +0100)
data/rbot/plugins/lastfm.rb

index 3001259709b487f58b7b2d78803a3392dd5af912..a9a0a582c99e946655aae50788d0989b38cb73fc 100644 (file)
@@ -37,9 +37,9 @@ class ::LastFmEvent
 
   def compact_display
    if @attendance
-     return "%s %s @ %s (%s attending) %s" % [@date.strftime("%a %b, %d %Y"), @artist_string, @location, @attendance, @url]
+     return "%s %s @ %s (%s attending) %s" % [@date.strftime("%a, %b %d"), @artist_string, @location, @attendance, @url]
    end
-   return "%s %s @ %s %s" % [@date.strftime("%a %b, %d %Y"), @artist_string, @location, @url]
+   return "%s %s @ %s %s" % [@date.strftime("%a, %b %d"), @artist_string, @location, @url]
   end
   alias :to_s :compact_display