Modified:Added the actual in section of uploaded date
This commit is contained in:
parent
a1305eb600
commit
93414c6c14
2 changed files with 16 additions and 2 deletions
|
@ -176,7 +176,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="first"><label for="filename">Uploaded Date</label></td>
|
<td class="first"><label for="filename">Uploaded Date</label></td>
|
||||||
<td class="last">
|
<td class="last">
|
||||||
<p><span>{$data.date_added|nicetime}</span></p>
|
<p><span>{$data.date_added|date_only}</span></p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -5880,7 +5880,21 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trims the date added to date only
|
||||||
|
* @param : { $date_time }
|
||||||
|
* @author : Awais Fiaz
|
||||||
|
* @since : 5 March, 2018
|
||||||
|
* @todo : will trim the date and time to date only
|
||||||
|
* @return : { Date }
|
||||||
|
* @example : N/A
|
||||||
|
*/
|
||||||
|
function date_only($date_time)
|
||||||
|
{
|
||||||
|
$arr=explode(" ",$date_time);
|
||||||
|
return $arr[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue