Modified:Added the actual in section of uploaded date

This commit is contained in:
Awais-cb 2018-03-05 11:33:20 +05:00
parent a1305eb600
commit 93414c6c14
2 changed files with 16 additions and 2 deletions

View file

@ -176,7 +176,7 @@
<tr>
<td class="first"><label for="filename">Uploaded Date</label></td>
<td class="last">
<p><span>{$data.date_added|nicetime}</span></p>
<p><span>{$data.date_added|date_only}</span></p>
</td>
</tr>
<tr>

View file

@ -5880,7 +5880,21 @@
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];
}