Bug #11509
Updated by nobu (Nobuyoshi Nakada) about 9 years ago
Current code is: ~~~ruby ~~~ fraction_digits = Math.log10(usec.to_s.sub(/0*$/, '').to_i).floor + 1 ~~~ This makes time to lose as many digits, as there are zeros right after dot: ~~~diff ~~~ < <dc:date>2014-03-04T07:37:30.04253+04:00</dc:date> > <dc:date>2014-03-04T07:37:30.0425+04:00</dc:date> ~~~ My solution that solves the issue is: ~~~ruby ~~~ fraction_digits = (usec + 1000000).to_s.length - 1 ~~~ My Ruby is 2.0.0, but looks like noone touched RSS module for a year, so the bug is still here: https://bugs.ruby-lang.org/projects/ruby-trunk/repository/entry/lib/rss/rss.rb#L56