# Out of Time range (RangeError)

**URL:** <https://www.ruby-forum.com/t/out-of-time-range-rangeerror/126637>\
**Category:** Rails\
**Created:** [January 20, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/out-of-time-range-rangeerror/126637 "2008-01-20T20:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@sagar](https://www.ruby-forum.com/u/sagar)\
**Post date:** [January 20, 2008, 8:35pm UTC](https://www.ruby-forum.com/t/out-of-time-range-rangeerror/126637/1 "2008-01-20T20:35:51Z")

</div>

I am getting the following error message when starting WEBrick:

C:/ruby184-20/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/  
active\_support/core\_ext/numeric/time.rb:64:in `+': time + 946728000.000000 out of Time range (RangeError) from C:/ruby184-20/lib/ruby/gems/1.8/gems/activesupport-1.3.1/ lib/active_support/core_ext/numeric/time.rb:64:in`from\_now’  
from ./script/…/config/…/config/environment.rb:55  
from C:/ruby184-20/lib/ruby/site\_ruby/1.8/rubygems/  
custom\_require.rb:27:in `require' from C:/ruby184-20/lib/ruby/gems/1.8/gems/activesupport-1.3.1/ lib/active_support/dependencies.rb:147:in`require’  
from C:/ruby184-20/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/  
commands/servers/webrick.rb:52  
from C:/ruby184-20/lib/ruby/site\_ruby/1.8/rubygems/  
custom\_require.rb:27:in `require' from C:/ruby184-20/lib/ruby/gems/1.8/gems/activesupport-1.3.1/ lib/active_support/dependencies.rb:147:in`require’  
from C:/ruby184-20/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/  
commands/server.rb:30  
from C:/ruby184-20/lib/ruby/site\_ruby/1.8/rubygems/  
custom\_require.rb:27:in `require' from C:/ruby184-20/lib/ruby/gems/1.8/gems/activesupport-1.3.1/ lib/active_support/dependencies.rb:147:in`require’  
from script/server:3

Please help!

---

<div class="post-metadata">

**Author:** ![sagar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@sagar](https://www.ruby-forum.com/u/sagar)\
**Post date:** [January 20, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/out-of-time-range-rangeerror/126637/2 "2008-01-20T22:27:34Z")

</div>

I figured out what the problem is. It is caused by the following  
statement in the environment.rb file:

ActionController::Base.session\_options[:session\_expires] =  
30.years.from\_now

I changed 30 to 10 - that took care of the problem.
