Improved date displaying.

This commit is contained in:
Christian P. MOMON 2021-02-05 03:42:27 +01:00
parent eab4316102
commit 39ffde8632

View file

@ -339,7 +339,14 @@ public class StatoolInfosUtils
{ {
if (period.getMonths() == 0) if (period.getMonths() == 0)
{ {
result = String.format("%d jours", period.getDays()); if (period.getDays() <= 1)
{
result = String.format("%d jour", period.getDays());
}
else
{
result = String.format("%d jours", period.getDays());
}
} }
else else
{ {