[O] Make formatDate return moment instead

This commit is contained in:
Hykilpikonna
2019-10-05 19:55:41 -04:00
parent fa341101a8
commit 2077d784fd
2 changed files with 3 additions and 3 deletions
@@ -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>