Improved date displaying.
This commit is contained in:
parent
eab4316102
commit
39ffde8632
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue