Skip to content

Commit

Permalink
[PR] #11 from WilliamPeterMatthew: Fix time format
Browse files Browse the repository at this point in the history
Change 12-Hour Time Format to a 24-Hour Time Format.
  • Loading branch information
hykilpikonna authored Feb 14, 2024
2 parents 5a2a950 + 538abfa commit 6dc9d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/TgBlog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default class TgBlog extends Vue
{
if (this.postsData) this.posts = this.postsData
else this.posts = await (await fetch(this.purl)).json()
this.posts.forEach(it => it.date = moment(it.date).format('YYYY-MM-DD h:mm'))
this.posts.forEach(it => it.date = moment(it.date).format('YYYY-MM-DD H:mm'))
this.posts.reverse()
this.posts = this.posts.filter(it => it.type !== 'service')
this.count = Math.min(this.count, this.posts.length)
Expand Down

0 comments on commit 6dc9d5e

Please sign in to comment.