I have a script that goes into my site and parses the rss feeds, but
when it does this the pub date jumps backup about 11 months.

The code is below,

require 'rss/2.0'
require 'open-uri'
class NewsController < ApplicationController


  def index
        begin
            if !$app_lang || $app_lang == 'en'
              feed_url = 'http://www.rediff.com/rss/usrss.xml'
            else
              feed_url =
'http://localhost:8080/WebSummary/newssummary.jsp?cmbLanguage='+$app_lang
            end
            open(feed_url) do |http|
              response = http.read
              @result = RSS::Parser.parse(response, false)
              logger.info @result.channel.pubDate
            end
        rescue StandardError => myStandardError
                logger.info(myStandardError)
        end
  end
end

Kind Regards,
Andrew
-- 
Posted via http://www.ruby-forum.com/.