Skip to content

Commit 616c6fd

Browse files
committed
fix: update date formatting in donation table to use local time
1 parent 8497d28 commit 616c6fd

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/components/member-page/donation/index-old.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ const TitleContainer = styled.div`
7979
align-items: center;
8080
`
8181

82-
const DownloadYearlyReceiptButton = styled(PillButton)`
83-
height: 122px;
84-
height: 29px;
85-
`
82+
const DownloadYearlyReceiptButton = styled(PillButton)``
8683

8784
const Loading = styled.div``
8885
const LoadingMask = FetchingWrapper(Loading)

src/components/member-page/donation/table/row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const Divider = styled(divider)`
114114
`
115115

116116
export const formattedDate = date =>
117-
`${date.getUTCFullYear()}/${date.getUTCMonth() + 1}/${date.getUTCDate()}`
117+
`${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`
118118

119119
const getShowEditDonationInfo = status => {
120120
switch (status) {

0 commit comments

Comments
 (0)