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

Time.zone suggestion not smart enough #1977

Closed
jazzpi opened this issue Jun 18, 2015 · 0 comments
Closed

Time.zone suggestion not smart enough #1977

jazzpi opened this issue Jun 18, 2015 · 0 comments

Comments

@jazzpi
Copy link

jazzpi commented Jun 18, 2015

The following code triggers the "use Time.zone.strftime instead" warning:

Faker::Time.forward(0).strftime('%H:%M')

Faker is from the faker gem and Faker::Time.zone does not exist (why would it) and Faker::Time.zone.forward(0).zone returns the timezone abbreviation which does not have a strftime method.

$ rubocop -V
0.32.0 (using Parser 2.2.2.5, running on ruby 2.2.1 x86_64-linux)
bbatsov added a commit that referenced this issue Jun 28, 2015
[Fix #1977] Allow using danger methods with Time/Date subclasses
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

1 participant