From d7d48f58329f0798605add6c7f6b0de6c843e92d Mon Sep 17 00:00:00 2001 From: cp-sumi-k Date: Mon, 29 Jan 2024 11:47:26 +0530 Subject: [PATCH] Fix: published dates --- admin/src/api/post/content-types/post/lifecycles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/src/api/post/content-types/post/lifecycles.js b/admin/src/api/post/content-types/post/lifecycles.js index 6b6c661..9565f87 100644 --- a/admin/src/api/post/content-types/post/lifecycles.js +++ b/admin/src/api/post/content-types/post/lifecycles.js @@ -26,7 +26,7 @@ module.exports = { where: { id: event.result.id }, data: { is_published: true, - published_on: new Date(), + published_on: event.params.data.publishedAt, }, });