Ensured that office hours are at least 30 minutes in length

Also fixed a bug that would prevent editing of office hours because they conflicted with themselves.