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