Use Time.parse instead of DateTime.strptime - hopefully fixes #860