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

[win32] require 'date' breaks application when using rhosimulator #1010

Open
leonardofalk opened this issue Jul 26, 2019 · 0 comments
Open
Assignees

Comments

@leonardofalk
Copy link

The very first require 'date' fails with error:

Exception NoMethodError: undefined method 'new' for: #<NameError: undefined method 'strftime' for class 'Date'>

As a workaround:

# app/application.rb

require 'rho/rhoapplication'
begin
  require 'date'
rescue
  require 'date'
end
...

class AppApplication < Rho::RhoApplication
 ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants