publishDate - speced/respec GitHub Wiki

publishDate

Type: string Default: document's last-modified date

The publication date of this version of the document, in "YYYY-MM-DD" format. For Editor's Drafts and unofficial documents, leave this unset — ReSpec uses the document's last-modified date automatically. For documents being published to W3C TR/, set this explicitly.

Basic usage

var respecConfig = {
  publishDate: "2025-06-15",
};

Notes

  • Format must be "YYYY-MM-DD"
  • For "ED" status, omit this — ReSpec uses the browser's last-modified date, which is always current
  • For published documents ("WD", "CR", "REC", etc.), set this to the actual publication date
  • The browser's last-modified date can occasionally be wrong due to server timezone issues — if you see wrong dates on "ED" specs, set publishDate explicitly