Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37805

QDateTime secsTo() not handling DST properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.2.0
    • Core: Date/Time
    • None
    • Mac OS X 10.9.2
      Timezone: CST (UTC - 6 hours)

      The QDateTime::secsTo() method does not appear to be handling Daylight Savings Time (DST) properly. When at least one of the times occurs between 2-3 AM on a DST change, the method always returns 0.

      For example:
      D1 = 2014-3-9T2:30:00
      D2 = 2014-3-9T2:45:00
      secsTo() returns 0

      D1 = 2014-3-9T3:30:00
      D2 = 2014-3-9T3:45:00
      secsTo() returns 900

        1. main.cpp
          0.4 kB
          Levi Blackstone
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johnlayt John Layt
            lblackstone Levi Blackstone
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes