Calendar Widget - How to Set Correct TimeZone
-
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->" ?
-
Hi,
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) ?
-
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.