spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luiz Hissashi da Rocha (Jira)" <j...@apache.org>
Subject [jira] [Created] (SPARK-28918) from_utc_timestamp function is mistakenly considering DST for Brazil in 2019
Date Thu, 29 Aug 2019 20:02:00 GMT
Luiz Hissashi da Rocha created SPARK-28918:
----------------------------------------------

             Summary: from_utc_timestamp function is mistakenly considering DST for Brazil
in 2019
                 Key: SPARK-28918
                 URL: https://issues.apache.org/jira/browse/SPARK-28918
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.4.3
         Environment: I'm using Spark through Databricks
            Reporter: Luiz Hissashi da Rocha


I realized that *from_utc_timestamp* function is assuming that Brazil will have DST in 2019
but it will not, unlike previous years. Because of that, when I run the function bellow, instead
of having "2019-11-14" (São Paulo is UTC-3h), I still get "2019-11-15T00:18:01" wrongly (as
if it was UTC-2h due to DST).
{code:java}
// from_utc_timestamp("2019-11-15T02:18:01.000+0000", 'America/Sao_Paulo')
{code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message