diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 224b576154..dbea3b5344 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -53,7 +53,7 @@ class Time if usec.zero? fraction_digits = 0 else - fraction_digits = strftime('%6N').sub!(/0*\z/, '').size + fraction_digits = strftime('%6N').index(/0*\z/) end xmlschema(fraction_digits) end