attempting to fix a date math error on heroku