simplify age calculation #90
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we import the
s-age
package - which does nothing but calculate the age difference.What's worse, it apparently does it wrong (rounding "normally" rather than down).
Replace it with a function of our own.
From what I can tell, this library isn't even used so it could just be removed now.
The real problem is that the
time.vue
component usesMath.round()
in the age calculation, when it should be usingMath.floor()
instead.Johann and I were discussing in IRC earlier about that, and it might mean we'll need to make a separate component for birthdays since we'd otherwise have to special case a lot just for this use case.