diff options
author | relves | 2009-10-07 21:00:28 +0000 |
---|---|---|
committer | relves | 2009-10-07 21:00:28 +0000 |
commit | ad79daab2bbb192c940a291a6b41b50fb7e86b97 (patch) | |
tree | 2256c028e386041fcba1b6961c71d461d48e5aab /org.eclipse.mylyn.bugzilla.core | |
parent | 559623305f630dcf7b8dfdf6e9b6a2d394ec8035 (diff) | |
download | org.eclipse.mylyn.tasks-ad79daab2bbb192c940a291a6b41b50fb7e86b97.tar.gz org.eclipse.mylyn.tasks-ad79daab2bbb192c940a291a6b41b50fb7e86b97.tar.xz org.eclipse.mylyn.tasks-ad79daab2bbb192c940a291a6b41b50fb7e86b97.zip |
NEW - bug 288214: modified shows earlier date than creation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=288214
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java index a96078108..5a265b50a 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaAttributeMapper.java @@ -36,7 +36,7 @@ public class BugzillaAttributeMapper extends TaskAttributeMapper { private final String dateFormat_3 = "yyyy-MM-dd"; //$NON-NLS-1$ - private final String dateFormat_1_TimeZone = "yyyy-MM-dd HH:mm:ss zzz"; //$NON-NLS-1$ + private final String dateFormat_1_TimeZone = "yyyy-MM-dd HH:mm:ss Z"; //$NON-NLS-1$ private final String dateFormat_2_TimeZone = "yyyy-MM-dd HH:mm zzz"; //$NON-NLS-1$ @@ -113,7 +113,11 @@ public class BugzillaAttributeMapper extends TaskAttributeMapper { if (attributeId.equals(BugzillaAttribute.DELTA_TS.getKey())) { parsedDate = new SimpleDateFormat(dateFormat_1_TimeZone).parse(dateString); } else if (attributeId.equals(BugzillaAttribute.CREATION_TS.getKey())) { - parsedDate = new SimpleDateFormat(dateFormat_2_TimeZone).parse(dateString); + if (bugzillaVersion.compareMajorMinorOnly(BugzillaVersion.BUGZILLA_2_22) < 0) { + parsedDate = new SimpleDateFormat(dateFormat_2_TimeZone).parse(dateString); + } else { + parsedDate = new SimpleDateFormat(dateFormat_1_TimeZone).parse(dateString); + } } else if (attributeId.equals(BugzillaAttribute.BUG_WHEN.getKey())) { if (bugzillaVersion.compareMajorMinorOnly(BugzillaVersion.BUGZILLA_2_22) < 0) { comment_creation_ts_Format_Timezone = new SimpleDateFormat(dateFormat_2_TimeZone); |