Skip to content

Commit

Permalink
feat: formatDate() use full date
Browse files Browse the repository at this point in the history
  • Loading branch information
viko16 committed Mar 16, 2020
1 parent 58d8a62 commit cfab629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/TimeAgo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
return format(new Date(str), locale)
},
formatDate: date => {
return new Date(date).toLocaleDateString()
return new Date(date).toLocaleString()
}
},
props: {
Expand Down

0 comments on commit cfab629

Please sign in to comment.