Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-264

Should be TimeZone.getTimeZone("GMT") instead of TimeZone.getTimeZone("UTC")

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Default
    • Resolution: Not a bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Windows XP SP2, JDK 1.6.0_03 and J2SDK1.4.2_16

      Description

      You are calling the method "TimeZone.getTimeZone" with argument "UTC" to obtain the "GMT" timezone . According to the documentation, you should be calling this method with argument "GMT", instead. The call TimeZone.getTimeZone("UTC") is working because it has fallback logic that defaults to "GMT" when the requested timezone (in this case, "UTC") is not found. As far as I can tell, the following QuickFIX/J files are affected by this issue:

      DateField.java
      JdbcStore.java
      SessionSchedule.java
      SystemTime.java
      FieldConvertersTest.java
      SessionScheduleTest.java
      AbstractDateTimeConverter.java

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ostertag Eduardo Ostertag
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: