Skip to content

Commit

Permalink
use dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Jan 5, 2024
1 parent dacc720 commit 6bace96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/revision-history/History.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
>
<h6 class="revision-date" v-text="
$moment.unix(group.day).isBefore($moment().startOf('day'))
? $moment.unix(group.day).toDate().toLocaleDateString($config.get('locale'), { month: 'long', day: 'numeric', year: 'numeric' })
? $moment.unix(group.day).toDate().toLocaleDateString($config.get('locale').replace('_', '-'), { month: 'long', day: 'numeric', year: 'numeric' })
: __('Today')" />
<div class="revision-list">
<revision
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/revision-history/Revision.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="flex-1">
<div class="revision-author text-gray-700 text-2xs">
<template v-if="revision.user">{{ revision.user.name || revision.user.email }} &ndash;</template>
{{ date.toDate().toLocaleTimeString($config.get('locale'), { hour: 'numeric', minute: '2-digit' }) }}
{{ date.toDate().toLocaleTimeString($config.get('locale').replace('_', '-'), { hour: 'numeric', minute: '2-digit' }) }}
</div>
</div>

Expand Down

0 comments on commit 6bace96

Please sign in to comment.