You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "fml2 (Jira)" <ji...@apache.org> on 2020/04/21 08:04:00 UTC

[jira] [Updated] (KAFKA-9781) TimestampConverter / Allow to specify a time zone when converting unix epoch to string

     [ https://issues.apache.org/jira/browse/KAFKA-9781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

fml2 updated KAFKA-9781:
------------------------
    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.

  was:
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 for that). If no time zone is specified, UTC should be used.


> TimestampConverter / Allow to specify a time zone when converting unix epoch to string
> --------------------------------------------------------------------------------------
>
>                 Key: KAFKA-9781
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9781
>             Project: Kafka
>          Issue Type: Wish
>          Components: KafkaConnect
>            Reporter: fml2
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)