Bug 987353 - Migrate day_view_test.js to use new "view" code r=gaye

also fixed a bug on `createEvent` logic (if `startHour == 0`)