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

MonthGrid OnClicked Documentation Should Reference Time is Given in UTC 00:00:00 Before Being Converted to Timezone

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 6.2, 6.5.6, 6.8.3
    • Documentation
    • None
    • Windows, Linux, MacOS in a - timezone such as GMT-4:00
    • All

    Description

      When I have used the clicked signal with MonthGrid in the past, I have gotten an issue where the date will be one day off. Recently looked into this further and found I was not alone according to this bug:

      https://bugreports.qt.io/browse/QTBUG-72208?jql=text%20~%20%22MonthGrid%22

      It seems others have also had similar issues. However, the issue is actually that the date is given as the Date with UTC time then that time and date is converted to locale time and date. So if I click on 06/13/2025 I will get 06-13-2025 00:00:00 and then that gets converted to locale time so the onClicked signal handler receives 06-12-2025 20:00:00.

      It would be beneficial if our documentation mentioned this is what was happening so that others do not encounter the same error and are confused as well since this does appear to be a bug at first glance.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mitch_curtis Mitch Curtis
              jordanangel Jordan Angel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes