Skip to content

Commit 34910ec

Browse files
committed
crate.version: Use date-format-distance-to-now instead of moment-from-now
1 parent 28e72a1 commit 34910ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/templates/crate/version.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@
8484
<div local-class='top'>
8585
<div>
8686
<div local-class='last-update'>Last Updated</div>
87-
<div local-class='{{if this.currentVersion.crate_size 'date-with-small-margin-bot' 'date'}}'>{{moment-from-now this.crate.updated_at}}</div>
87+
<div local-class='{{if this.currentVersion.crate_size 'date-with-small-margin-bot' 'date'}}'>
88+
{{date-format-distance-to-now this.crate.updated_at addSuffix=true}}
89+
</div>
8890
</div>
8991

9092
{{#if this.currentVersion.crate_size}}

0 commit comments

Comments
 (0)