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

QTime::addSecs can overflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.5.1
    • 5.5.0
    • Core: Date/Time
    • None
    • windows 7 32 bit
    • cc5e84c8788a6d6f05dfdf76fc249177ee74dce1

      The following ends up in 03:28:36 but should be 20:31:24.
      QTime time;
      time.setHMS(0,0,0);
      time = time.addSecs(2233884);

      QLabel label;
      label.setText(time.toString("hh:mm:ss"));
      label.show();

        For Gerrit Dashboard: QTBUG-47717
        # Subject Branch Project Status CR V

            thiago Thiago Macieira
            tobske Tobias Matern
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes