This project is archived and is in readonly mode.

#4282 ✓resolved
Santiago Pastorino

[PATCH] time_ext_test failing because of time zone

Reported by Santiago Pastorino | March 27th, 2010 @ 03:31 PM | in 3.0.2

Ruby's marshaling of Time instances doesn't respect the zone, after unmarshalling the time zone is UTC ever

1) Failure: test_marshaling_with_frozen_local_instance(TimeExtMarshalingTest)

[core_ext/time_ext_test.rb:790:in `test_marshaling_with_frozen_local_instance'
 /var/lib/gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
 /var/lib/gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:

<"UYT"> expected but was
<"UTC">.

2) Failure: test_marshaling_with_local_instance(TimeExtMarshalingTest)

[core_ext/time_ext_test.rb:774:in `test_marshaling_with_local_instance'
 /var/lib/gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
 /var/lib/gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:

<"UYT"> expected but was
<"UTC">.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages