Documents
publishedat-always-set-when-dandp-disabled
publishedat-always-set-when-dandp-disabled
Type
External
Status
Published
Created
Mar 5, 2026
Updated
Mar 5, 2026

import Intro from '/docs/snippets/breaking-change-page-intro.md'
import MigrationIntro from '/docs/snippets/breaking-change-page-migration-intro.md'

Content types with Draft & Publish disabled always have the publishedAt value set to a date#

In Strapi 5, content-types with Draft & Publish disabled always have the publishedAt value set to a date.

Breaking change description#

In Strapi v4

In Strapi v4, a content-type with Draft & Publish disabled does not even have a publishedAt attribute.

In Strapi 5

In Strapi 5, the publishedAt attribute always exist even if Draft & Publish is disabled for a content-types.

Migration#

Notes#

  • If Draft & Publish is enabled, publishedAt is:
    • null for drafts versions of documents
    • and set to the publication date for published versions of documents.
  • If Draft & Publish is disabled, publishedAt is set to the latest creation or edition date of the document.