Function name makes sense now

This commit is contained in:
utkarshcmu 2015-11-21 06:20:13 -08:00
parent 890c527ae5
commit e1432f4339
2 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ function (angular, _, moment) {
playlistSrv.stop(1);
};
$scope.dateFormat = function(date) {
$scope.formatDate = function(date) {
return moment(date).format('MMMM Do YYYY, h:mm a');
};

View File

@ -47,11 +47,11 @@
<table>
<tr>
<td><b>Updated at</b></td><td>&nbsp:&nbsp</td>
<td>{{dateFormat(dashboardMeta.updated)}}</td>
<td>{{formatDate(dashboardMeta.updated)}}</td>
</tr>
<tr>
<td><b>Created at</b></td><td>&nbsp:&nbsp</td>
<td>{{dateFormat(dashboardMeta.created)}}</td>
<td>{{formatDate(dashboardMeta.created)}}</td>
</tr>
</table>
</li>