Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9781

TimestampConverter / Allow to specify a time zone when converting unix epoch to string

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • connect
    • None

    Description

      TimestampConverter can convert a unix epoch value (long; number of milliseconds since Jan 01 1970 00:00 GMT) to string. However, when doing such conversion, the string result depends on the time zone used.

      TimestampConverter uses UTC (i.e. GMT) for the conversion and does not allow to change it. But I would need this in order to get the date/time representation in my local time zone.

      So I propose to introduce another config parameter (optional) for "target.type=string": timeZone (use java name as the value for the parameter). If no time zone is specified, UTC should be used, so that the change is backwards compatible.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fml2 fml2
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: