add datetime to functions of publish, regenerate, update status