Need to stop when a matching period is found!
This commit is contained in:
parent
d3cadc3795
commit
5614890138
@ -827,6 +827,7 @@ sub fancy_time {
|
|||||||
$dur = int($dur / $scale -> {"seconds"}); # Always going to be positive, so no need for floor() here
|
$dur = int($dur / $scale -> {"seconds"}); # Always going to be positive, so no need for floor() here
|
||||||
|
|
||||||
$fancytime = $self -> replace_langvar($dur == 1 ? $scale -> {"singular"} : $scale -> {"plural"}, {"%t" => $dur});
|
$fancytime = $self -> replace_langvar($dur == 1 ? $scale -> {"singular"} : $scale -> {"plural"}, {"%t" => $dur});
|
||||||
|
last;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user