Skip to content

Commit

Permalink
Revert published logic change (#2427)
Browse files Browse the repository at this point in the history
  • Loading branch information
agalin920 authored Jan 3, 2024
1 parent 77c61de commit 699c3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shell/store/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 699c3d1

Please sign in to comment.