sanity-io / sanity-template-gatsby-blog

A Sanity powered Gatsby blog for https://www.sanity.io/create
https://www.sanity.io/create?template=sanity-io/sanity-template-gatsby-blog
98 stars 34 forks source link

Post routing not handling utc/local time #145

Open davidhel opened 3 years ago

davidhel commented 3 years ago

Repro: If you for example are living in timezone +x hours from UTC, create a new post at midnight. Which will be the day before in UTC time. Publish page and try to open that blog post, verify it fails. This happens because the server think it's the day before, while the client thinks it's in the local date.