modify time parsing