Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2006-08-30 17:40:51 -0400
committerspingel2006-08-30 17:40:51 -0400
commita9a85176253ae5a0e2e9dee4b54b7fb2ad2d223f (patch)
treee966d0bacad0ed7b81a32c5a50ee5847424fdfe2 /org.eclipse.mylyn.trac.core/src
parent2b248f90ef785ba9e258893a187794d113aef5a4 (diff)
downloadorg.eclipse.mylyn.tasks-a9a85176253ae5a0e2e9dee4b54b7fb2ad2d223f.tar.gz
org.eclipse.mylyn.tasks-a9a85176253ae5a0e2e9dee4b54b7fb2ad2d223f.tar.xz
org.eclipse.mylyn.tasks-a9a85176253ae5a0e2e9dee4b54b7fb2ad2d223f.zip
Progress on: 155261: Trac tasks are wrongly marked to have incoming changes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=155261
Diffstat (limited to 'org.eclipse.mylyn.trac.core/src')
-rw-r--r--org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracUtils.java22
1 files changed, 10 insertions, 12 deletions
diff --git a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracUtils.java b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracUtils.java
index be7b91c55..7358134db 100644
--- a/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracUtils.java
+++ b/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/util/TracUtils.java
@@ -8,11 +8,7 @@
package org.eclipse.mylar.internal.trac.core.util;
-import java.util.Calendar;
import java.util.Date;
-import java.util.TimeZone;
-
-import org.eclipse.mylar.internal.trac.core.ITracClient;
/**
* Provides static helper methods.
@@ -22,17 +18,19 @@ import org.eclipse.mylar.internal.trac.core.ITracClient;
public class TracUtils {
public static Date parseDate(long seconds) {
- Calendar c = Calendar.getInstance();
- c.setTimeZone(TimeZone.getTimeZone(ITracClient.TIME_ZONE));
- c.setTimeInMillis(seconds * 1000l);
- return c.getTime();
+ return new Date(seconds * 1000l);
+// Calendar c = Calendar.getInstance();
+// c.setTimeZone(TimeZone.getTimeZone(ITracClient.TIME_ZONE));
+// c.setTimeInMillis(seconds * 1000l);
+// return c.getTime();
}
public static long toTracTime(Date date) {
- Calendar c = Calendar.getInstance();
- c.setTime(date);
- c.setTimeZone(TimeZone.getTimeZone(ITracClient.TIME_ZONE));
- return c.getTimeInMillis() / 1000l;
+// Calendar c = Calendar.getInstance();
+// c.setTime(date);
+// c.setTimeZone(TimeZone.getTimeZone(ITracClient.TIME_ZONE));
+// return c.getTimeInMillis() / 1000l;
+ return date.getTime() / 1000l;
}
}

Back to the top