Fixed depreciated Moment.js call

I'm having trouble creating an account to log in to, so this
createRequest function is untested!