BZ-11944 format moment properly