Added require for time to avoid issue with Time.parse