diff --git a/src/apps/content-editor/src/app/views/ItemCreate/ItemCreate.tsx b/src/apps/content-editor/src/app/views/ItemCreate/ItemCreate.tsx index fd3fb10c3a..4630729a21 100644 --- a/src/apps/content-editor/src/app/views/ItemCreate/ItemCreate.tsx +++ b/src/apps/content-editor/src/app/views/ItemCreate/ItemCreate.tsx @@ -260,7 +260,7 @@ export const ItemCreate = () => { }, }).then(() => { // Retain non rtk-query fetch of item publishing for legacy code - dispatch(fetchItemPublishing(modelZUID, itemZUID)); + dispatch(fetchItemPublishing(modelZUID, newItemZUID)); }); }; diff --git a/src/shell/store/content.js b/src/shell/store/content.js index fd82ec10f2..045e77b186 100644 --- a/src/shell/store/content.js +++ b/src/shell/store/content.js @@ -860,8 +860,8 @@ function parsePublishState(records) { If `publishAt` is set but unpublishAt is not you only need to determine if `nowGMT` is after `publishAt`. a.k.a is it live If both `publishAt` and `unpublishAt` are set you need determine all 3 states. **/ - const nowGMT = moment.utc().startOf("minute"); - const publishAtGMT = moment(record.publishAt).startOf("minute"); + const nowGMT = moment.utc(); + const publishAtGMT = moment(record.publishAt); const unpublishAtGMT = moment(record.unpublishAt); // Current time is before publishAt so it is scheduled