parent
b43e7e5930
commit
8321ff3126
1 changed files with 4 additions and 4 deletions
|
@ -340,13 +340,13 @@ public class DateUtil {
|
|||
t = t / 60;
|
||||
if (t != 1) unit = resourceHelper.gs(R.string.unit_hours);
|
||||
if (t > 24) {
|
||||
unit = resourceHelper.gs(R.string.unit_day) + "\"";
|
||||
unit = resourceHelper.gs(R.string.unit_day);
|
||||
t = t / 24;
|
||||
if (t != 1) unit = resourceHelper.gs(R.string.unit_days) + "\"";
|
||||
if (t != 1) unit = resourceHelper.gs(R.string.unit_days);
|
||||
if (t > 28) {
|
||||
unit = resourceHelper.gs(R.string.unit_week) + "\"";
|
||||
unit = resourceHelper.gs(R.string.unit_week);
|
||||
t = t / 7;
|
||||
if (t != 1) unit = resourceHelper.gs(R.string.unit_weeks) + "\"";
|
||||
if (t != 1) unit = resourceHelper.gs(R.string.unit_weeks);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue