Improving time parsing