Actions
Bug #11509
closedIncorrect fraction_digits calculation in lib/rss/rss.rb:41 Time#w3cdtf
Bug #11509:
Incorrect fraction_digits calculation in lib/rss/rss.rb:41 Time#w3cdtf
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.0.0p451
Description
Current code is:
This makes time to lose as many digits, as there are zeros right after dot:
< <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:
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
Actions