Fix parsing of 12am and 12pm in timestringToInteger and getTotalTime.