manno / frab

conference manangement system
7 stars 3 forks source link

schedule: conference can't end at 0:00 #19

Closed manno closed 12 years ago

manno commented 12 years ago
          - time = @conference.day_start
          - while time < @conference.day_end
manno commented 12 years ago

set day_end to 23:55

manno commented 12 years ago

Maybe use a datepicker in /app/views/conferences/_form.html.haml

= f.input :last_day, :hint => "When does your conference end?", :as => :datetime_picker, :input_html => { :min => "2012-01-01 00:00", :max => "2012-01-02 00:00" }
manno commented 12 years ago

Next idea: turn day_start, day_end into integers (0..24)

This means conference always end on full hours, so 18:15 won't be possible any more. How would that affect:

wingfire commented 12 years ago

What happens if a conference day goes over 00:00 ? I.e. form 18:00 to 02:00 the next day?

manno commented 12 years ago

i guess that's a two day conference then... day1: 18-24, day2: 0-2

wingfire commented 12 years ago

and day 3 from 18:00 to 24:00 on the same day as day2 again? and events starting at day1 and end at day2 ;)

manno commented 12 years ago

I see, that means peoples availibility is a not one, but several intervals per day, i.e. [0-2,18-24]

Well, is a 'time day' different from a 'conference day'?

manno commented 12 years ago

Days are no longer real days, they are just time spans using full datetime start and end values. A conference can now have several "days".

Speakers availabilities are stored as full datetimes, too, and belong to a certain"day".

Conference days can now use different opening and closing hours, conference days work beyond midnight and it is possible to track speaker availabilites beyond 00:00.