GabeStah / vcp

0 stars 0 forks source link

Convert all data models to use timestamp instead of datetime #63

Closed GabeStah closed 10 years ago

GabeStah commented 10 years ago

see #62

GabeStah commented 10 years ago
    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
GabeStah commented 10 years ago

Rails and MySQL using different timezones?

See raid_pages_spec:30:

Raid.first.started_at.getlocal (+1 hr)
TimeManagement.raid_start
GabeStah commented 10 years ago

Not the correct solution; altering DateTime to Time.zone is superior.