Skip to content

Commit

Permalink
fix: Rollback!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
viko16 committed Dec 15, 2020
1 parent 4fd84a4 commit 63eebe8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/TimeAgo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ export default {
filters: {
timeago: (str, lang) => {
if (!str) return format()
const language = navigator ? navigator.language : lang
const locale = (language || '').replace('-', '_')
const locale = (lang === 'zh-CN') ? 'zh_CN': 'en_US'
return format(new Date(str), locale)
},
formatDate: date => {
Expand Down

0 comments on commit 63eebe8

Please sign in to comment.