Correctly force 24-hour datetime format when use24hours option is set.