Not a big deal, but we can probably replace this with one or two lines using `moment.js` which is loaded in the frontend already.