craigary / nobelium

A static blog build on top of Notion and NextJS, deployed on Vercel.
https://nobelium.js.org
MIT License
3k stars 1.97k forks source link

Issue caused by timezone mismatch #287

Closed BeautyyuYanli closed 1 year ago

BeautyyuYanli commented 1 year ago

Describe the bug This project seems unable to display blog posts with a publishing time after the access time. However, for blog posts with publishing time set to precision of day, due to differences in time zones between the publisher and the machine on which this project is deployed (i.e. Vercel or VPS), it may result in the publisher's post being inaccessible on that day.

To Reproduce Deploy the blog on Vecel and set the serverless function region in Washington(UTC-4). If you are a writer in China(UTC+8) and write a post between 00:00 UTC+8 and 11:59 UTC+8, you must set the post date to "yesterday" to make it accessible immediately.

Expected behavior

Screenshots

image

Platform:

Additional context

SilentDepth commented 1 year ago

I believe this is a duplicate of #229. Please check that issue for a workaround.