Skip to content

Commit df7bde5

Browse files
author
Uditi Mehta
committed
fix date format
1 parent 9ff7563 commit df7bde5

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

app/preprints/-components/preprint-card/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55

66
.card-contents {
7-
display: flex;
7+
display: block;
88
flex-direction: row;
99
}
1010

app/preprints/-components/preprint-card/template.hbs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@
5959
{{t 'preprints.preprint_card.date_created'}}
6060
</dt>
6161
<dd data-test-created-timestamp-value>
62-
{{moment @preprint.dateCreated}}
62+
{{moment-format @preprint.dateCreated 'YYYY-MM-DD'}}
6363
</dd>
6464
</div>
6565
<div>
6666
<dt data-test-updated-timestamp-label>
6767
{{t 'preprints.preprint_card.date_modified'}}
6868
</dt>
6969
<dd data-test-updated-timestamp-value>
70-
{{moment @preprint.dateModified}}
70+
{{moment-format @preprint.dateModified 'YYYY-MM-DD'}}
7171
</dd>
7272
</div>
7373
<div>
@@ -81,14 +81,6 @@
8181
/>
8282
</dd>
8383
</div>
84-
<div>
85-
<dt data-test-description-label>
86-
{{t 'preprints.preprint_card.description'}}
87-
</dt>
88-
<dd data-test-description local-class='description'>
89-
{{@preprint.description}}
90-
</dd>
91-
</div>
9284
{{#if (and this.showTags @preprint.tags)}}
9385
<div>
9486
<dt local-class='tags' data-test-tags-label>

0 commit comments

Comments
 (0)