[ruby-cvs:72075] nobu:r64975 (trunk): Time.parse based from non-Time object

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Oct 9 14:55:30 JST 2018


nobu	2018-10-09 14:55:29 +0900 (Tue, 09 Oct 2018)

  New Revision: 64975

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64975

  Log:
    Time.parse based from non-Time object
    
    * lib/time.rb (Time.make_time): as the document states, the second
      argument of `Time.parse` may be a non-`Time` object which does not
      have `getlocal` method, assume it is in the local time in the case.
      based on the patch by nkmrya (Yasuhiro Nakamura) at
      [ruby-core:68775].  [ruby-core:68775] [Bug #11037]
    
    Co-authored-by: nkmrya (Yasuhiro Nakamura) <yasuhiro6194 at gmail.com>

  Modified files:
    trunk/lib/time.rb
    trunk/test/test_time.rb


More information about the ruby-cvs mailing list