Quickfix to some date issues

This commit is contained in:
Zeusking19 2015-12-26 20:59:45 +00:00
parent a760527e49
commit 8282e5752d
3 changed files with 3 additions and 3 deletions

View file

@ -151,7 +151,7 @@ class AlbumsController extends ApiControllerBase
'id' => $album->id,
'title' => $album->title,
'slug' => $album->slug,
'created_at' => $album->created_at,
'created_at' => $album->created_at->format('c'),
'covers' => [
'small' => $album->getCoverUrl(Image::SMALL),
'normal' => $album->getCoverUrl(Image::NORMAL)

View file

@ -14,7 +14,7 @@
<a href="/account/albums/edit/{{album.id}}">
<img pfm-src-loader="album.covers.normal" pfm-src-size="normal" class="image" />
<span class="title">{{album.title}}</span>
<span class="published">{{album.created_at | pfmdate:'MM/dd/yyyy'}}</span>
<span class="published">{{album.created_at | date:'MM/dd/yyyy'}}</span>
</a>
</li>
<li ng-show="!albums.length" class="empty">

View file

@ -5,7 +5,7 @@
<a href="/account/tracks/edit/{{track.id}}" ng-click="selectTrack(track)">
<img class="image" ng-src="{{track.cover_url}}" />
<span class="title">{{track.title}}</span>
<span class="published">{{track.created_at | pfmdate:'MM/dd/yyyy'}}</span>
<span class="published">{{track.created_at | date:'MM/dd/yyyy'}}</span>
</a>
</li>
</ul>