Bump version to 3.1.0.alpha
Handle invalid time for Rails 3