[O] Make formatDate return moment instead
This commit is contained in:
@@ -14,8 +14,8 @@ export default class UnreadEntry extends Vue
|
||||
*
|
||||
* @param date Date
|
||||
*/
|
||||
formatDate(date: Date)
|
||||
private getMoment(date: string)
|
||||
{
|
||||
return moment(date).format('MMM Do');
|
||||
return moment(new Date(date));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="unread-entry vertical-center">
|
||||
<el-row class="unread-row">
|
||||
<el-col :span="2" class="date">
|
||||
{{formatDate(new Date(assignment.date))}}
|
||||
{{getMoment(assignment.date).format("MMM Do")}}
|
||||
</el-col>
|
||||
<el-col :span="16" class="description">
|
||||
<span class="type entry-box">{{assignment.type}}</span>
|
||||
|
||||
Reference in New Issue
Block a user