Skip to content

Commit d22009b

Browse files
committed
LogView: Date column should be more fine grained
- and show yyyy-MM-dd HH:mm:ss.SSS instead of just minute precision - this is useful where you want to see the exact time of log events in cases where seconds or even milliseconds matter
1 parent 70a35a9 commit d22009b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundles/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/LogViewLabelProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.eclipse.ui.internal.views.log;
1717

1818
import java.text.DateFormat;
19+
import java.text.SimpleDateFormat;
1920
import java.util.ArrayList;
2021
import org.eclipse.core.runtime.IStatus;
2122
import org.eclipse.jface.resource.JFaceResources;
@@ -34,7 +35,7 @@ public class LogViewLabelProvider extends LabelProvider implements ITableLabelPr
3435
private Image errorWithStackImage;
3536
private Image hierarchicalImage;
3637
ArrayList<Object> consumers = new ArrayList<>();
37-
private DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
38+
private DateFormat dateFormat = new SimpleDateFormat(LogEntry.F_DATE_FORMAT);
3839

3940
private LogView logView;
4041

0 commit comments

Comments
 (0)