Improve detection of 24hr time format (updates #26138)