HI, I have a pretty weird problems with dates. my objective was to parse some text files and put them into a database.
the lines of the file are divided with a | and some of the fields are dates in this format dd.mm.yyyy now in the parsing a get the system date to skip parsing elements in the past @date is the local date created with @date = Time.now.to_date params[:to] is the string from the file with the date in above format I did this with a simple if params && ( params[:to].to_date > @date ) # nie parsujemy starych cennikow Price.create_or_update params end on my local enviroment everything works fine but on the remote host i get an invalid date ArgumentError ruby version on host ruby 1.8.6 (2007-06-07 patchlevel 36) [i386-linux] local ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux] any ideas? thanks in advance -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.