ItEr44S19CUExportacionUnidadePlanificacion: Adding format to dates in subcontracted tasks list.
This commit is contained in:
parent
9acc18cd0e
commit
b05b2847a9
1 changed files with 10 additions and 0 deletions
|
|
@ -21,6 +21,8 @@ package org.navalplanner.web.subcontract;
|
|||
|
||||
import static org.navalplanner.web.I18nHelper._;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.navalplanner.business.common.exceptions.ValidationException;
|
||||
|
|
@ -110,6 +112,14 @@ public class SubcontractedTasksController extends GenericForwardComposer {
|
|||
return object.toString();
|
||||
}
|
||||
|
||||
private String toString(Date date) {
|
||||
if (date == null) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return new SimpleDateFormat("dd/MM/yyyy HH:mm").format(date);
|
||||
}
|
||||
|
||||
private void appendLabel(Row row, String label) {
|
||||
row.appendChild(new Label(label));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue