Using localtime when selecting Periods from database
Hiding the checkboxes when showing History