correct deprecated moment syntax