Project

General

Profile

Backport #8991

r43177 (fix offset of Time.strptime with "%s" directive)

Added by nagachika (Tomoyuki Chikanaga) almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:57699]

Description

The problem reported in [ruby-core:57694] seems to be happen on 2.0.0/1.9.3 too.

Associated revisions

Revision 8b73cefe
Added by nagachika (Tomoyuki Chikanaga) almost 6 years ago

merge revision(s) 43177,43191: [Backport #8991]

    * lib/time.rb (Time.strptime): Use :offset.
      Patch by Felipe Contreras.  [ruby-core:57694]

    * lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
      time Time object as Ruby 2.0 and before.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 53293d3c
Added by usa (Usaku NAKAMURA) almost 6 years ago

merge revision(s) 43177,43191: [Backport #8991]

    * lib/time.rb (Time.strptime): Use :offset.
      Patch by Felipe Contreras.  [ruby-core:57694]

    * lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
      time Time object as Ruby 2.0 and before.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@43483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 43483
Added by usa (Usaku NAKAMURA) almost 6 years ago

merge revision(s) 43177,43191: [Backport #8991]

* lib/time.rb (Time.strptime): Use :offset.
  Patch by Felipe Contreras.  [ruby-core:57694]

* lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
  time Time object as Ruby 2.0 and before.

History

Updated by nagachika (Tomoyuki Chikanaga) almost 6 years ago

Time.strptime(epoch, "%s") return localtime at r43191. It should be backported too.

#2

Updated by nagachika (Tomoyuki Chikanaga) almost 6 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r43221.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 43177,43191: [Backport #8991]

* lib/time.rb (Time.strptime): Use :offset.
  Patch by Felipe Contreras.  [ruby-core:57694]

* lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
  time Time object as Ruby 2.0 and before.
#3

Updated by nagachika (Tomoyuki Chikanaga) almost 6 years ago

  • Project changed from Backport200 to Backport193
  • Status changed from Closed to Assigned
  • Assignee changed from nagachika (Tomoyuki Chikanaga) to usa (Usaku NAKAMURA)
#4

Updated by usa (Usaku NAKAMURA) almost 6 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r43483.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 43177,43191: [Backport #8991]

* lib/time.rb (Time.strptime): Use :offset.
  Patch by Felipe Contreras.  [ruby-core:57694]

* lib/time.rb (Time.strptime): Time.strptime('0', '%s') returns local
  time Time object as Ruby 2.0 and before.

Also available in: Atom PDF