fix: email embed displaying wrong date (#14128)
This commit is contained in:
@@ -385,7 +385,7 @@ const EmailEmbedPreview = ({
|
||||
Object.keys(selectedDateAndTime)
|
||||
.sort()
|
||||
.map((key) => {
|
||||
const date = new Date(key);
|
||||
const selectedDate = dayjs(key).tz(timezone).format("dddd, MMMM D, YYYY");
|
||||
return (
|
||||
<table
|
||||
key={key}
|
||||
@@ -406,12 +406,7 @@ const EmailEmbedPreview = ({
|
||||
color: "rgb(26, 26, 26)",
|
||||
fontWeight: "bold",
|
||||
}}>
|
||||
{date.toLocaleDateString("en-US", {
|
||||
weekday: "long",
|
||||
month: "long",
|
||||
day: "numeric",
|
||||
year: "numeric",
|
||||
})}
|
||||
{selectedDate}
|
||||
|
||||
</span>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user