Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12191 Hive timestamp problems
  3. HIVE-14305

To/From UTC timestamp may return incorrect result because of DST

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      If the machine's local timezone involves DST, the UDFs return incorrect results.
      For example:

      select to_utc_timestamp('2005-04-03 02:01:00','UTC');
      

      returns 2005-04-03 03:01:00. Correct result should be 2005-04-03 02:01:00.

      select to_utc_timestamp('2005-04-03 10:01:00','Asia/Shanghai');
      

      returns 2005-04-03 03:01:00. Correct result should be 2005-04-03 02:01:00.

        Attachments

          Activity

            People

            • Assignee:
              lirui Rui Li
              Reporter:
              lirui Rui Li
            • Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: