Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2, 6.5.6, 6.8.3
-
None
-
Windows, Linux, MacOS in a - timezone such as GMT-4:00
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
- duplicates
-
QTBUG-72208 Qt.labs.calendar onClicked date is one day off.
-
- Reported
-