You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dian Fu (JIRA)" <ji...@apache.org> on 2019/06/26 03:39:00 UTC

[jira] [Created] (FLINK-12990) Date type doesn't consider the local TimeZone

Dian Fu created FLINK-12990:
-------------------------------

             Summary: Date type doesn't consider the local TimeZone
                 Key: FLINK-12990
                 URL: https://issues.apache.org/jira/browse/FLINK-12990
             Project: Flink
          Issue Type: Bug
          Components: API / Python
            Reporter: Dian Fu
            Assignee: Dian Fu


Currently, the python DateType is converted by an `int` which indicates the days passed since 1970-1-1 and then the Java side will create a Java Date by call `new Date(days * 86400)`. As we know that the Date constructor expected milliseconds since 1970-1-1 00:00:00 GMT and so we should convert `days * 86400` to GMT milliseconds.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)