Time.now returns a datetime while released_on is a date. Maybe this works, but it seems like you should convert it to a date.