Skip to content

Commit

Permalink
fix live blog card local time
Browse files Browse the repository at this point in the history
  • Loading branch information
vishu2222 committed Oct 3, 2024
1 parent 1dd4501 commit ff25933
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/templates/live-blog/container-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const CardUpdatedAtBase = ({ story, config, timeStamp, card }: CardUpdate

const cardTimeStampRender = get(config, ["opts", "render", "liveBlogCardTimeStamp"], null);
const languageCode = get(config, ["publisherConfig", "language", "ietf-code"]);
const timeZone = get(config, ["additionalConfig", "general", "timeZone"], "Asia/Kolkata");
const localizationOpts = get(config, ["opts", "featureConfig", "localization"], {});

if (cardTimeStampRender) return cardTimeStampRender({ story, config, card });
Expand All @@ -35,7 +36,8 @@ export const CardUpdatedAtBase = ({ story, config, timeStamp, card }: CardUpdate
day: "numeric",
hour: "numeric",
minute: "numeric",
hour12: true
hour12: true,
timeZone
});
}
}
Expand Down

0 comments on commit ff25933

Please sign in to comment.