stateless-systems / net-ftp-list

29 stars 14 forks source link

Some dates on microsoft servers raising InvalidDate error #6

Open tigris opened 12 years ago

tigris commented 12 years ago

Tested in both 1.8.7 and 1.9.3... date looks ok to me?

$ net.list
=> ["08-30-2012  12:20AM       <DIR>          salmonquarries.com.au"]

$ net.list.map{|l| Net::FTP::List.parse l}
ArgumentError: invalid date
    from ./gems/ruby/1.9.1/gems/net-ftp-list-3.2.3/lib/net/ftp/list/microsoft.rb:25:in `strptime'