Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to localtime get?
-
It had used the system time so far .
but.
i want to change time the localtime.
QDateTime::currentDateTime
QDateTime::currentDateTimeUtc()
Why is not localtime?
-
What do you mean by "local time"?
QDateTime::currentDateTime returns the current time on the machine on which your application is running.
-
QDateTime::currentDateTime is SystemTime