Skip to content

Commit

Permalink
fixed date, don't mess with it 🥶
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitgeistxx committed Aug 19, 2023
1 parent 5a883cb commit 3269470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/component/Date/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const nth = (d) => {

const dateToText = (date) => {
const months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
return `${date.getDate()}${nth(date.getDate())} ${months[date.getMonth()] - 1}, ${date.getFullYear()}`
return `${date.getDate()}${nth(date.getDate())} ${months[date.getMonth() - 1]}, ${date.getFullYear()}`
}

export default DateElement

2 comments on commit 3269470

@vercel
Copy link

@vercel vercel bot commented on 3269470 Aug 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sccseapi – ./backend

sccseapi-git-main-team-zetta.vercel.app
sccseapi-team-zetta.vercel.app
sccseapi.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 3269470 Aug 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.