Project

General

Profile

Backport #5907

DateTime.xmlschema overwrites passed parameter

Added by tomekr (Tomek Rabczak) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:42172]

Description

Hi there,

I originally filed this bug in rails, however it was recommended that I file it here. The issue can be found here:

https://github.com/rails/rails/issues/4507#issuecomment-3546570

(From that post)

Rails 3.1.0
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

this is the only string i have seen that produces this result

datetime_string = "2006-02-13T10:37:00.000-05:00"
=> "2006-02-13T10:37:00.000-05:00"
datetime_string
=> "2006-02-13T10:37:00.000-05:00"
DateTime.xmlschema( datetime_string )
=> Mon, 13 Feb 2006 10:37:00 -0500
datetime_string
=> "

-Tomek

Associated revisions

Revision 9104e80b
Added by naruse (Yui NARUSE) almost 8 years ago

merge revision(s) 34335,34337: [Backport #5907]

    * ext/date/date_parse.c: [ruby-core:42173].

    * ext/date/date_strptime.c: moved detector of leftover.

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

Revision 34440
Added by naruse (Yui NARUSE) almost 8 years ago

merge revision(s) 34335,34337: [Backport #5907]

* ext/date/date_parse.c: [ruby-core:42173].

* ext/date/date_strptime.c: moved detector of leftover.

History

#2

Updated by naruse (Yui NARUSE) almost 8 years ago

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

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


merge revision(s) 34335,34337: [Backport #5907]

* ext/date/date_parse.c: [ruby-core:42173].

* ext/date/date_strptime.c: moved detector of leftover.

Also available in: Atom PDF