Closed GabeStah closed 10 years ago
@default
value for datetime_local fields it "should generate datetime_local_field" do
form_for(@author) do |builder|
node = Capybara.string builder.datetime_local_field(:forty_two)
node.should have_css('label[for="author_forty_two"]', :text => "Forty two")
node.should have_css('input.medium.input-text[type="datetime-local"][name="author[forty_two]"]')
node.find_field('author_forty_two').value.should == @author.forty_two.strftime("%Y-%m-%dT%H:%M:%S")
end
end
Rails and MySQL using different timezones?
See raid_pages_spec:30
:
Raid.first.started_at.getlocal (+1 hr)
TimeManagement.raid_start
Not the correct solution; altering DateTime to Time.zone is superior.
see #62