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

Commit 05968de6 authored by fauno's avatar fauno

using numbers now

parent 0968ca19
......@@ -30,7 +30,7 @@
break;
case ($diff < 60):
# less than a minute
return $number_to_alpha[$diff] . ' seconds ago';
return $diff . ' seconds ago';
break;
case ($diff < 120):
# between a minute and two
......@@ -38,7 +38,7 @@
break;
case ($diff < 3600):
# less than an hour
return $number_to_alpha[ceil($diff / 60)] . ' minutes ago';
return ceil($diff / 60) . ' minutes ago';
break;
case ($diff < 7200):
# between an hour and two
......@@ -46,7 +46,7 @@
break;
case ($diff < 86400):
# less than a day
return $number_to_alpha[ceil($diff / 3600)] . ' hours ago';
return ceil($diff / 3600) . ' hours ago';
break;
case ($diff < 172800):
# less than two days
......@@ -54,7 +54,7 @@
break;
case ($diff < 604800):
# less than a week
return $number_to_alpha[ceil($diff / 86400)] . ' days ago';
return ceil($diff / 86400) . ' days ago';
break;
case ($diff < 691200):
# a week an a day
......@@ -62,7 +62,7 @@
break;
case ($diff < 2764800):
# less than a month
return $number_to_alpha[ceil($diff / 691200)] . ' weeks ago';
return ceil($diff / 691200) . ' weeks ago';
break;
case ($diff < 4579200):
# a month and three weeks
......@@ -70,7 +70,7 @@
break;
case ($diff < 33177600);
# less than a year
return $number_to_alpha[ceil($diff / 2764800)] . ' months ago';
return ceil($diff / 2764800) . ' months ago';
break;
case ($diff < 35942400):
# a year and a month
......
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