You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2022/05/24 15:07:00 UTC

[jira] [Commented] (HIVE-25577) unix_timestamp() is ignoring the time zone value

    [ https://issues.apache.org/jira/browse/HIVE-25577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541568#comment-17541568 ] 

Stamatis Zampetakis commented on HIVE-25577:
--------------------------------------------

It seems like the problem mentioned here was introduced by the changes for HIVE-25458. Can you please confirm [~ashish-kumar-sharma] ?

> unix_timestamp() is ignoring the time zone value
> ------------------------------------------------
>
>                 Key: HIVE-25577
>                 URL: https://issues.apache.org/jira/browse/HIVE-25577
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 3.1.2, 4.0.0
>            Reporter: Ashish Sharma
>            Assignee: Ashish Sharma
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0, 4.0.0-alpha-1
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> set hive.local.time.zone=Asia/Bangkok;
> Query - SELECT FROM_UNIXTIME(UNIX_TIMESTAMP('2000-01-07 00:00:00 GMT','yyyy-MM-dd HH:mm:ss z'));
> Result - 2000-01-07 00:00:00 ICT



--
This message was sent by Atlassian Jira
(v8.20.7#820007)