Meteor runs JS on the server side, so you can use it there. Phoenix doesn’t.
Either make the moment calls client side, or use an equivalent. moment provides quite a lot of functionality, but I’d guess Timex is probably the closest thats popularly used.
I see thank you