add setPublishedAt missing function