Fixed issue on 24 hours format for timepicker

24 hours format were not working in time picker due to the assumption that its use was defined by the format string of the picker (if it contained A, 24 hours format were not used) rather than from the options or data in the tags.