We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 854e91b5 authored by tonyb486's avatar tonyb486

Fixed human time in profile page.

parent 55d548cd
......@@ -61,10 +61,14 @@ class User {
* Get a user's scrobbles ordered by time
*
* @param int $number The number of scrobbles to return
* @return An array of scrobbles
* @return An array of scrobbles with human time
*/
function getScrobbles($number) {
return Server::getRecentScrobbles($number, $this->name);
$data = Server::getRecentScrobbles($number, $this->name);
foreach($data as &$i) {
$i['timehuman'] = human_timestamp($i['time']);
}
return $data;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment