Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stdlib/date/format.rb:837 error with date #4480

Closed
MTEKode opened this issue Feb 7, 2017 · 2 comments
Closed

stdlib/date/format.rb:837 error with date #4480

MTEKode opened this issue Feb 7, 2017 · 2 comments

Comments

@MTEKode
Copy link

MTEKode commented Feb 7, 2017

  • jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.111-b14 on 1.8.0_111-b14 +jit [darwin-x86_64]
  • Rails 5.1
    Hi,
    I have a problem with stdlib/date/format.rb line 837
    str = str.to_str if !str.kind_of?(::String) && str.respond_to?(:to_str)
    when you try to parse a date throw a exception: no method to_str for Date, I change to_str to to_s.
@olleolleolle
Copy link
Member

@forumd Thanks for the report. Can you make a small program outside of Rails to show the problem?

@kares
Copy link
Member

kares commented Jun 11, 2018

no feedback in a year+ and unfortunately no reproduction thus closing, for now

@kares kares closed this as completed Jun 11, 2018
@kares kares added this to the Invalid or Duplicate milestone Jun 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants