Fixing dates so they don't fail in phantomjs