-
Notifications
You must be signed in to change notification settings - Fork 494
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
Fix CFP conference timezone #2904
base: master
Are you sure you want to change the base?
Conversation
Hey @nolleto thanks for this fix! 😃 |
Looks like you have to fix the model spec. I guess changing |
let me know if you need help @nolleto |
Sorry for the delay. I will update with |
I think using Time.zone = timezone_plus14
Timecop.freeze(Time.zone.now)
# VS
Timecop.freeze(Time.zone.now.in_time_zone(timezone_plus14)) Because I need the server and the So, I added an describe '#open?' do
let!(:server_timezone) { Time.zone }
let(:timezone_plus14) { 'Pacific/Apia' }
let(:timezone_plus14) { 'Pacific/Apia' }
after do
Time.zone = server_timezone
end
... But, if you have a better idea, just let me know :) |
Checklist
master
branch.Short description of what this resolves/which issues does this fix?:
cfp.open?
to consider the conference timezone.Changes proposed in this pull request: