Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-54

DefaultComponentRuntimeContainerImpl use local timezone by default, it should use UTC

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Can't Fix
    • Major
    • 0.3.0
    • None
    • None
    • None
    • All
    • Hide

      The date convert method has been removed from this class.

      Show
      The date convert method has been removed from this class.
    • Small

    Description

      The DefaultComponentRuntimeContainerImpl use the local timezone to parse and display date.
      However, a BigData user may have a cluster on a different timezone, so the usage of this function will implies many bugs.

      For example, the trickiest one is:
      A French user read from HDFS in Tokyo a file with a date field. Let's say the date is 12-12-2012.
      We create a Date object, which will contains the date and the hour information for the local timezone as the Japan time zone.

      The user then want to display this date on its computer, he will retrieve the object and display it. The local timezone will change to the french one.
      There is 8 hours between France and Japan, so SimpleDateFormat will first remove 8 hours of the date 12-12-2012 00h00h00 to set it to the new timezone (aka: 11-12-2012 16h00h00).
      Finally SimpleDateFormat will format the date and display only 11-12-2012.

      We should force the usage of the UTC timezone to fix that.

      Attachments

        Activity

          People

            pbailly Pierre Bailly
            pbailly Pierre Bailly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: