Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

ActiveRecord test fail for Postgres

#4948

Get following failed test for test_timestamp_with_zone_values_without_rails_time_zone_support test in datatype_test_postgresql.rb

 1) Failure:
test_timestamp_with_zone_values_without_rails_time_zone_support(PostgresqlDataTypeTest)
    [./test/cases/datatype_test_postgresql.rb:237:in `test_timestamp_with_zone_values_without_rails_time_zone_support'
     /Users/anil/Code/rails/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
     /Users/anil/Code/rails/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run'
     /Users/anil/Code/rails/rails/activesupport/lib/active_support/callbacks.rb:413:in `_run_setup_callbacks'
     /Users/anil/Code/rails/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:65:in `run']:
<Fri Jan 01 11:00:00 UTC 2010> expected but was
<Fri Jan 01 16:00:00 +0530 2010>.

So here, need to assert local timezone time value in different way. As :local is different for different zones.

Can somebody point me how to assert time for local timezone?

Reported by Anil Wadghule · June 23rd, 2010 @ 06:11 PM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to duplicate

    Hey Anil i have the same problem to you. Sorry for not realizing about your ticket.
    Let me mark as duplicate even though the duplicate is the one i made :P, but i've already attached the patch to the other ticket https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets...

    June 24th, 2010 @ 02:01 AM