comparing dates

I am still new to all of this but it might be worth a try converting
them to be integers first and then carryinag out the comparison

ie. something like time.now.to_i

then comparing the integers

Hope that helps