summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-12-13 08:34:10 (EST)
committerSteffen Pingel2012-12-15 13:33:23 (EST)
commit900af2c55e2aed16023b0c8b02576950137275f9 (patch)
treee77f1c38f5f82f0ac1e5004c3764b65589035bb0
parent89e7ddec5c089f5d244d09efcb27e243915698b3 (diff)
downloadorg.eclipse.mylyn.tasks-900af2c55e2aed16023b0c8b02576950137275f9.zip
org.eclipse.mylyn.tasks-900af2c55e2aed16023b0c8b02576950137275f9.tar.gz
org.eclipse.mylyn.tasks-900af2c55e2aed16023b0c8b02576950137275f9.tar.bz2
310545: persist query time stamp in server timerefs/changes/16/9216/3
Change-Id: Id38a06c74ab09a2ce543feaba33d0c55e9c4d9d7 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=310545
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
index 5908592..f2e98d1 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java
@@ -80,7 +80,7 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
//private static final String DEADLINE_FORMAT = "yyyy-MM-dd"; //$NON-NLS-1$
- private static final String TIMESTAMP_WITH_OFFSET = "yyyy-MM-dd HH:mm:ss Z"; //$NON-NLS-1$
+ //private static final String TIMESTAMP_WITH_OFFSET = "yyyy-MM-dd HH:mm:ss Z"; //$NON-NLS-1$
private static final long HOUR = 1000 * 60 * 60;
@@ -361,11 +361,14 @@ public class BugzillaRepositoryConnector extends AbstractRepositoryConnector {
}
if (syncSession.getData() == null && collector.getQueryTimestamp() != null) {
- Date queryDate = BugzillaAttributeMapper.parseDate(collector.getQueryTimestamp());
- if (queryDate != null) {
- // Ensure time is in right format
- syncSession.setData(new SimpleDateFormat(TIMESTAMP_WITH_OFFSET).format(queryDate));
- }
+ // Bugzilla 4.2 does not parse the timezone of the time stamp properly hence it needs to be persisted in
+ // server time and not local time
+ syncSession.setData(collector.getQueryTimestamp());
+// Date queryDate = BugzillaAttributeMapper.parseDate(collector.getQueryTimestamp());
+// if (queryDate != null) {
+// // Ensure time is in right format
+// syncSession.setData(new SimpleDateFormat(TIMESTAMP_WITH_OFFSET).format(queryDate));
+// }
}
}