mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
fixed page failing to load on safari
This commit is contained in:
parent
6d21250283
commit
7828fcc0dc
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import Icon from '@hackclub/icons'
|
||||
import { useEffect, useRef, useState } from 'react'
|
||||
import { Box, Button, Card, Flex, Grid, Input, Link, Text } from 'theme-ui'
|
||||
import { format } from 'date-fns'
|
||||
import { format, parse } from 'date-fns'
|
||||
import BGImg from '../../background-image'
|
||||
import background from '../../../public/home/footer.png'
|
||||
import MailCard from '../../mail-card'
|
||||
|
|
@ -207,7 +207,7 @@ const MailingList = () => {
|
|||
<MailCard
|
||||
issue={index + 1}
|
||||
body={html}
|
||||
date={format(new Date(data.names[index].split('-').join(', ')), 'MMMM d, yyyy')}
|
||||
date={format(parse('', '', new Date(data.names[index])), 'MMMM d, yyyy')}
|
||||
link={data.names[index]}
|
||||
key={index}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue