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

Commit 3357b1f8 authored by tobyink's avatar tobyink

Some tracks were reported as '7 days ago', others as 'about a week ago' and...

Some tracks were reported as '7 days ago', others as 'about a week ago' and others still as '1 weeks ago'.
Now these are all 'about a week ago'.
parent 6243f966
......@@ -74,6 +74,8 @@
break;
case ($diff < 604800):
# less than a week
if (round($diff / 86400) == 7)
return 'about a week ago';
return round($diff / 86400) . ' days ago';
break;
case ($diff < 691200):
......@@ -82,6 +84,8 @@
break;
case ($diff < 2764800):
# less than a month
if (round($diff / 691200) == 1)
return 'about a week ago';
return round($diff / 691200) . ' weeks ago';
break;
case ($diff < 4579200):
......
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