Skip to content

Commit

Permalink
Use language to compute date
Browse files Browse the repository at this point in the history
  • Loading branch information
BenJneB committed Dec 12, 2023
1 parent a40d2b3 commit 89fb8fc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/components/CommentEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<strong>{{ entry.author || $t('entry.anonymous') }}</strong>
{{
$t('entry.authored_date', {
date: entry.modified_at.toLocaleDateString(),
date: entry.modified_at.toLocaleDateString(this.$i18n.locale),
time: entry.modified_at.toLocaleTimeString(),
})
}}
Expand Down
Loading

0 comments on commit 89fb8fc

Please sign in to comment.