Skip to content

Conversation

aditsachde
Copy link
Contributor

Currently, the sidebar on blog pages shows the wrong date for the posts – they are all off by one.

The markdown files have pages with no specified timezone, so new Date(post.date) parses these in UTC. However, the getDate/Month/Year functions use the local timezone. This makes the dates that show up on the sidebar dependent on the current time of the build machine.

Fixed:

image

Previously:

image

Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@Darksonn Darksonn merged commit ec56f48 into tokio-rs:master Jun 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants