Skip to content

Commit

Permalink
Fix date.getDay should be date.getDate
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukaii committed Apr 13, 2021
1 parent 48935ed commit 99585cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FactoryDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default createComponent({
return new Date(b.created_at) >= new Date(a.created_at) ? 1 : -1
}).map(record => {
const date = new Date(record.created_at)
const dateStr = `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDay()}`
const dateStr = `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`
return {
date: dateStr,
others: record.others
Expand Down

0 comments on commit 99585cb

Please sign in to comment.