Improved date displaying.
This commit is contained in:
parent
eab4316102
commit
39ffde8632
1 changed files with 8 additions and 1 deletions
|
@ -338,9 +338,16 @@ public class StatoolInfosUtils
|
|||
if (period.getYears() == 0)
|
||||
{
|
||||
if (period.getMonths() == 0)
|
||||
{
|
||||
if (period.getDays() <= 1)
|
||||
{
|
||||
result = String.format("%d jour", period.getDays());
|
||||
}
|
||||
else
|
||||
{
|
||||
result = String.format("%d jours", period.getDays());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
result = String.format("%d mois", period.getMonths());
|
||||
|
|
Loading…
Reference in a new issue