Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0 RC
-
-
b1b68aa279275e93b867c29fa42350f42b9d9728 (qt/qtquickcontrols/5.12)
Description
There is a bug in Calendar type, if user specifies time in Date() function, then time is getting considered in deciding to enable and disable dates in Calendar. And somehow, 12:00:00 looks to be cut-off for this, Like if you execute the following code:
Calendar{ minimumDate: new _Date_(2018, 10, 1,11,59,00) // Enables 1st Nov, 2018 maximumDate: new _Date_(2018, 11, 1,11,59,00) // Disables 1st Dec, 2018 }
But when I change time to something past 12:00:00, its behavior changes like
Calendar { minimumDate: new _Date_(2018, 10, 1,12,01,00) // Disables 1st Nov, 2018 maximumDate: new _Date_(2018, 11, 1,12,01,00) // Enables 1st Dec, 2018 }
I find this unexpected as time should not be considered in deciding the minimum or maximum date.