Cygwin - 在`utc':超出范围的时间(ArgumentError)

时间:2014-09-04 18:11:30

标签: ruby cygwin

我在Windows 8.1上通过新的Cygwin Ruby安装(通过Cygwin的setup.exe)获得以下内容:

$ ruby -v
ruby 2.0.0p481 (2014-05-08) [x86_64-cygwin]

$ ruby
/usr/share/rubygems/rubygems/specification.rb:103:in `utc': time out of range (ArgumentError)
    from /usr/share/rubygems/rubygems/specification.rb:103:in `<class:Specification>'
    from /usr/share/rubygems/rubygems/specification.rb:37:in `<top (required)>'
    from /usr/share/rubygems/rubygems.rb:1203:in `require'
    from /usr/share/rubygems/rubygems.rb:1203:in `<module:Gem>'
    from /usr/share/rubygems/rubygems.rb:115:in `<top (required)>'
    from <internal:gem_prelude>:1:in `require'
    from <internal:gem_prelude>:1:in `<compiled>'

有关如何解决此问题的任何提示?

102行和103行:

today = Time.now.utc
TODAY = Time.utc(today.year, today.month, today.day) # :nodoc:

0 个答案:

没有答案