Skip to content

Commit

Permalink
fix rss date
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloChecked committed Oct 26, 2024
1 parent 4fb6568 commit 4d69a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog/components/FeedRss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ function buildRFC822Date(dateString: string) {
const dayNumber = date.getDate().toString().padStart(2, "0");
const year = date.getFullYear();
//Wed, 02 Oct 2002 13:00:00 GMT
return `${day}, ${dayNumber} ${month} ${year} 00:00:00 GTM`;
return `${day}, ${dayNumber} ${month} ${year} 00:00:00 GMT`;
}
2 changes: 1 addition & 1 deletion blog/components/SiteMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function SiteMap(props: {
${props.router
.map((page) => {
return siteMapUrl({
pageUrl: props.domain + page?.relativeWebsitePath ?? "/",
pageUrl: props.domain + (page?.relativeWebsitePath ?? "/"),
lastModifiedDate: props.latestBuildDate,
});
})
Expand Down

0 comments on commit 4d69a0d

Please sign in to comment.