diff options
author | Steffen Pingel | 2012-12-13 13:34:10 +0000 |
---|---|---|
committer | Steffen Pingel | 2012-12-15 18:33:23 +0000 |
commit | 900af2c55e2aed16023b0c8b02576950137275f9 (patch) | |
tree | e77f1c38f5f82f0ac1e5004c3764b65589035bb0 /org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core | |
parent | 89e7ddec5c089f5d244d09efcb27e243915698b3 (diff) | |
download | org.eclipse.mylyn.tasks-900af2c55e2aed16023b0c8b02576950137275f9.tar.gz org.eclipse.mylyn.tasks-900af2c55e2aed16023b0c8b02576950137275f9.tar.xz org.eclipse.mylyn.tasks-900af2c55e2aed16023b0c8b02576950137275f9.zip |
310545: persist query time stamp in server time
Change-Id: Id38a06c74ab09a2ce543feaba33d0c55e9c4d9d7
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=310545
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java | 15 |
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 5908592eb..f2e98d1aa 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)); +// } } } |