Convert GMT DateTime to local
Unsolved
General and Desktop
-
Hi, when I get response from HTTP server and I would like to convert date in header (Ex: Mon, 27 Mar 2023 07:06:09 GMT) to local date
2023-03-27 09:06:20.How to do it ?
Thanks
-
@pprevautel
Use a suitable method from QDateTime Class to parse the string (maybefromString()
?) and access e.g.toLocalTime()
to convert to local time or output as a string (toString()
?). -