Updated 24hour detection

Updated 24hour detection to look for lower case 'h' (12-hour clock hours) as well as case-insensitive 'a' (AM/PM marker), based on suggestions in #482