summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorDaniel Megert2011-11-01 04:27:08 (EDT)
committer Daniel Megert2011-11-01 04:27:08 (EDT)
commit240f8cf5a7675d68bb6ec05cfa2b39ad16be4b55 (patch)
tree133556afd09b302ce8e88f1359b21485cced9855
parent66d8a2b6db087d79381812a9b84fedbf1734be3c (diff)
downloadegit-240f8cf5a7675d68bb6ec05cfa2b39ad16be4b55.zip
egit-240f8cf5a7675d68bb6ec05cfa2b39ad16be4b55.tar.gz
egit-240f8cf5a7675d68bb6ec05cfa2b39ad16be4b55.tar.bz2
The History view date format is hard-codedrefs/changes/26/4426/2
Bug 359961 Change-Id: I10d08b503313f146969f38d5207fd1bdfaf97b92 Signed-off-by: Daniel Megert <daniel_megert@ch.ibm.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GraphLabelProvider.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GraphLabelProvider.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GraphLabelProvider.java
index 3cd6e45..1fd115b 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GraphLabelProvider.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GraphLabelProvider.java
@@ -2,6 +2,7 @@
* Copyright (C) 2006, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
* Copyright (C) 2011, Matthias Sohn <matthias.sohn@sap.com>
+ * Copyright (C) 2011, IBM Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -11,7 +12,6 @@
package org.eclipse.egit.ui.internal.history;
import java.text.DateFormat;
-import java.text.SimpleDateFormat;
import org.eclipse.jface.viewers.BaseLabelProvider;
import org.eclipse.jface.viewers.ITableLabelProvider;
@@ -33,7 +33,7 @@ class GraphLabelProvider extends BaseLabelProvider implements
private boolean relativeDate;
GraphLabelProvider() {
- absoluteFormatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); //$NON-NLS-1$
+ absoluteFormatter = DateFormat.getDateTimeInstance();
}
public String getColumnText(final Object element, final int columnIndex) {