Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Calendar Widget - How to Set Correct TimeZone
heedaf last edited by
I'm using the calendar widget in Qt Designer and it is showing the wrong Time Zone (changes day 6 hours too early). Can anyone tell me how to set it to the correct time zone using "ui->calendarWidget->" ?
AFAIK, there's no notion of time zone in QCalendarWidget, it should follow your system. Are you sure your OS is setup correctly (e.g. locale) ?
heedaf last edited by heedaf
Win 7 and it is set to Mountain Time Zone (Qt v4.8). I had the same problem using QDateTime and I had to run
QTime time1 = time.addSecs(-3600*6);
No other options I tried would work.