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

Fixed #7245 Inconsistent output from ActiveSupport::TimeZone.all #8660

Closed
wants to merge 1 commit into from
Closed

Fixed #7245 Inconsistent output from ActiveSupport::TimeZone.all #8660

wants to merge 1 commit into from

Conversation

smondal
Copy link

@smondal smondal commented Dec 30, 2012

Now this is not given any inconsistent out.

ActiveSupport::TimeZone.all
chicago = ActiveSupport::TimeZone['America/Chicago']
ActiveSupport::TimeZone.all.include?(chicago)
=> false

chicago = ActiveSupport::TimeZone['America/Chicago']
ActiveSupport::TimeZone.all.include?(chicago)
=> false

This fixes #7245

@bsodmike
Copy link
Contributor

bsodmike commented Jan 1, 2013

@smondal first off, happy new year to you :) I'm wondering how one could test this - i.e. it'll need to be run in isolation?

@smondal
Copy link
Author

smondal commented Jan 1, 2013

Happy new year to all..Please follow the ticket #7245. That was post by "wonnage" in 5 months back. Previous it was given inconsistent output.

@senny
Copy link
Member

senny commented Jan 12, 2013

You should write a test-case to make sure the "previously" inconsistent behavior does no longer happen. This will prevent regressions from happening. (maybe you can use the one I wrote some time ago senny@9e6cb87)

@senny
Copy link
Member

senny commented Jan 13, 2013

There is a competing PR for the same Issue #8377

@jimryan
Copy link

jimryan commented Apr 22, 2013

It looks like the consensus on #7245 was to fix this issue in the view, so I think that this can probably be closed.

@senny
Copy link
Member

senny commented Apr 23, 2013

thanks @jimryan. Closing this one see the discussion on #7245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent output from ActiveSupport::TimeZone.all
4 participants