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
shouldn't that be !== -1 or am I way too many hours in front of my pc?