diff options
Diffstat (limited to 'data/rbot/plugins/time.rb')
-rw-r--r-- | data/rbot/plugins/time.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/time.rb b/data/rbot/plugins/time.rb index 4e7543c8..190abd6a 100644 --- a/data/rbot/plugins/time.rb +++ b/data/rbot/plugins/time.rb @@ -45,13 +45,13 @@ class TimePlugin < Plugin end ['/', '_'].each { |sp| arr = Array.new - zone.split(sp).each{ |s| + zone.split(sp).each{ |s| s[0] = s[0,1].upcase s[1, s.length] = s[1, s.length].downcase if sp == '/' arr.push(s) } zone = arr.join( sp ) } - + tz = TZInfo::Timezone.get( zone ) "#{tz.friendly_identifier} - #{tz.now.strftime( '%a %b %d %H:%M' )} #{tz.current_period.abbreviation}" end |