Test for date.

This commit is contained in:
James Cole 2015-04-11 18:47:37 +02:00
parent 8d9561d7a5
commit c43439bb68
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
@endif
<th>Current balance</th>
<th>Active</th>
<th data-dateformat="D MMMM YYYY">Last activity</th>
<th data-dateformat="YYYY-MM-DD">Last activity</th>
<th>Balance difference between {{Session::get('start')->format('jS F Y')}} and {{Session::get('end')->format('jS F Y')}}</th>
</tr>
</thead>
@ -41,7 +41,7 @@
@endif
</td>
@if($account->lastActivityDate)
<td>
<td data-value="{{$account->lastActivityDate->format('Y-m-d')}}">
{{{$account->lastActivityDate->format('j F Y')}}}
</td>
@else

View File

@ -3,7 +3,7 @@
<tr>
<th data-defaultsort="disabled">&nbsp;</th>
<th>Name</th>
<th data-dateformat="DD-MM-YYYY">Last activity</th>
<th data-dateformat="YYYY-MM-DD">Last activity</th>
</tr>
</thead>
<tbody>
@ -24,7 +24,7 @@
<a href="{{route('categories.show',$category->id)}}" title="{{{$category->name}}}">{{{$category->name}}}</a>
</td>
@if($category->lastActivity)
<td data-value="{{$category->lastActivity->format('d-m-Y')}}">
<td data-value="{{$category->lastActivity->format('Y-m-d')}}">
{{$category->lastActivity->format('jS F Y')}}
</td>
@else