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

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    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

            lirui Rui Li
            lirui Rui Li
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: