transitive-bullshit / nextjs-notion-starter-kit

Deploy your own Notion-powered website in minutes with Next.js and Vercel.
https://transitivebullsh.it/nextjs-notion-starter-kit
MIT License
6.17k stars 5.24k forks source link

Bug: Publish date on website homepage is one month earlier than specified in Notion database, when it is set to be the first day of any month #604

Open powersagitar opened 6 months ago

powersagitar commented 6 months ago

Please refer to https://github.com/transitive-bullshit/nextjs-notion-starter-kit/issues/604#issuecomment-2056833537 for the bug per se and steps to reproduce.

The issue is present in this revision: https://github.com/transitive-bullshit/nextjs-notion-starter-kit/tree/0e40674e88f8429fbb136d032ae77be17f1bda9c (the main branch at the time of writing)

araza95 commented 5 months ago

@powersagitar , Hi, I hope you are doing well. I would like to fix this bug for you.

Can you elaborate on the issue, specifically regarding how the published date is processed and displayed? Also, could you please provide steps on how to reproduce this bug?

Understanding the underlying cause and reproduction steps will help me propose an effective solution. Thank you!

powersagitar commented 5 months ago

Hi @araza95, thank you for your interest.

Steps to Reproduce

  1. Duplicate the Notion template
  2. Change the Published field of one of the posts to February 1, 2024
  3. Publish Notion page to web
  4. Checkout main branch of this repo
  5. Adjust rootNotionPageId in site.config.ts accordingly
  6. Run yarn to install dependencies, yarn dev to start a development server

The Bug

Please let me know if more clarification is required. :)