QDateTime now = QDateTime::currentDateTime(); int timezone = now.time().hour() - now.toUTC().time().hour();
TIME_ZONE_INFORMATION tz; if(GetTimeZoneInformation( &tz )){ int timezone = tz.Bias / (-60); }