Getting current date time in a different time zone in qt4.8
-
Hi all,
I need to get the current date and time in a time zone that is different from the system local. I'm using qt4.8 and it looks to me there is not support for time zone management. Is there any way? Is there anything similar to QDateTime::currentDateTime() in which I can specify a different time zone (example Rome/Berlin +1) ?
Thanks
-
Hi,
Support for time zone has been added to Qt since 5.2 You can try to take a look a the code to see if you can re-use some of it in your application.