agojs: 'an' hour
This commit is contained in:
@@ -46,7 +46,7 @@ $(function(){
|
|||||||
format: function(time, unit) {
|
format: function(time, unit) {
|
||||||
time = Math.abs(time);
|
time = Math.abs(time);
|
||||||
if (!unit) return "just now";
|
if (!unit) return "just now";
|
||||||
if (time === 1) time = "a";
|
if (time === 1) time = (unit[0] == "h") ? "an" : "a";
|
||||||
var tail = time < 0 ? " ahead" : " ago";
|
var tail = time < 0 ? " ahead" : " ago";
|
||||||
return time + " " + unit + tail;
|
return time + " " + unit + tail;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user