Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12706

Incorrect output from from_utc_timestamp()/to_utc_timestamp when local timezone has DST

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • UDF
    • None

    Description

      Getting wrong output with the local timezone set to PST (which has DST). I don't think this happens when the local timezone does not observe DST.

      select from_utc_timestamp('2015-03-28 17:00:00', 'Europe/London')
      2015-03-28 17:00:00
      
      select from_utc_timestamp('2015-03-28 18:00:00', 'Europe/London')
      2015-03-28 19:00:00  <= Wrong, should be 2015-03-28 18:00:00
      
      select from_utc_timestamp('2015-03-28 19:00:00', 'Europe/London')
      2015-03-28 20:00:00 <= Wrong, should be 2015-03-28 19:00:00
      

      Also to_utc_timestamp():

      select to_utc_timestamp('2015-03-28 17:00:00', 'Europe/London')
      2015-03-28 17:00:00
      
      select to_utc_timestamp('2015-03-28 18:00:00', 'Europe/London')
      2015-03-28 17:00:00 <= Wrong
      
      select to_utc_timestamp('2015-03-28 19:00:00', 'Europe/London')
      2015-03-28 18:00:00 <= Wrong
      
      select to_utc_timestamp('2015-03-28 20:00:00', 'Europe/London')
      2015-03-28 19:00:00 <= Wrong
      

      Attachments

        1. HIVE-12706.1.patch
          7 kB
          Jason Dere

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jdere Jason Dere Assign to me
            jdere Jason Dere
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment