Kovid found a new bug in how Qt handles dates. Formerly
Code:
QDateTime(some_python_date)
preserved the timezone, where now it doesn't. This can cause problems where the date moves a day.
See
https://github.com/kovidgoyal/calibr...b4d3ec86b2a711 for how examples of how he fixed it.
Examples:
Code:
self.setDateTime(now())
is changed to:
self.setDateTime(qt_from_dt(now()))
Code:
return None if is_date_undefined(val) else QDateTime(as_local_time(val))
is changed to
return None if is_date_undefined(val) else qt_from_dt(val)