Seebs wrote: > On 2009-11-01, Jacob Gorban <jacob.gorban / gmail.com> wrote: >> For some reason ruby 1.8.6 return invalid date exception when parsing a >> date of Oct 31 (yesterday) in the format above. Oct 30 and most other >> dates parses fine and run fine. Time, year or timezone don't matter. > > It's suspiciously close to a range where you would be in a daylight > savings crossover in at least one timezone, but unless that's it, I > can't suggest anything. > > -s I don't know why this should matter. It's bug still. I've now figured out that an explicit DateTime.strptime('17:26:33 Oct 31, 2009 PST', '%T %b %d, %Y %Z') will work fine. But after running for several months with a code that ran just fine I felt very unconfortable with this bug over a specific date. -- Posted via http://www.ruby-forum.com/.