Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AareFabrik committed Feb 3, 2025
1 parent d836f34 commit a257e39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions next/app/(main)/beitrag/[date]/[postslug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ async function getPost(params) {
const { isEnabled } = draftMode();

try {
const date = moment.utc(params.date, "DD-MM-YYYY");
const date = moment(params.date, "DD-MM-YYYY").format();
const slug = params.postslug;
const nextDayDate = moment.utc(params.date, "DD-MM-YYYY").add(1, "d");
const nextDayDate = moment(params.date, "DD-MM-YYYY").add(1, "d").format();
console.info("Rerender Post: " + slug);

const itemResponse = await Api.readItemsPost(
{
fields: [
Expand Down

0 comments on commit a257e39

Please sign in to comment.