@@ -0,0 +1,1068 @@
+package florian_haas.lucas.web.converter;%0D%0A%0D%0Aimport java.util.concurrent.TimeUnit;%0D%0A%0D%0Aimport javax.faces.component.UIComponent;%0D%0Aimport javax.faces.context.FacesContext;%0D%0Aimport javax.faces.convert.FacesConverter;%0D%0A%0D%0Aimport florian_haas.lucas.web.util.WebUtils;%0D%0A%0D%0A@FacesConverter(LongToTimeConverter.CONVERTER_ID)%0D%0Apublic class LongToTimeConverter extends BasicConverter%3CLong%3E %7B%0D%0A%0D%0A%09public static final String CONVERTER_ID = %22lucas:longToTimeConverter%22;%0D%0A%0D%0A%09@Override%0D%0A%09protected String getString(FacesContext context, UIComponent uiComponent, Long value) %7B%0D%0A%09%09// long mls = value %25 1000;%0D%0A%09%09return value != null%0D%0A%09%09%09%09? WebUtils.getTranslatedMessage(%22lucas.application.longToTimeConverter.normal%22,%0D%0A%09%09%09%09%09%09formattLong(TimeUnit.MILLISECONDS.toHours(value) %25 24), formattLong(TimeUnit.MILLISECONDS.toMinutes(value) %25 60),%0D%0A%09%09%09%09%09%09formattLong(TimeUnit.MILLISECONDS.toSeconds(value) %25 60))%0D%0A%09%09%09%09: WebUtils.getTranslatedMessage(%22lucas.application.longToTimeConverter.normal%22);%0D%0A%09%7D%0D%0A%0D%0A%09private String formattLong(Long data) %7B%0D%0A%09%09return String.format(%22%2502d%22, data);%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Revert "Revert "Added LongToTimeConverter""