prettytime didn't work, fixed it myself