[Interest] Getting the timezone from Qt?

John Layt jlayt at kde.org
Fri Jul 27 10:07:46 CEST 2012

On 27 July 2012 08:33, Nikos Chantziaras <realnc at gmail.com> wrote:
> Is there a way to get the current timezone in standard IANA format from
> Qt?  (Meaning a string like "America/New_York", "Europe/Paris", etc.)

No, that's a feature not coming until Qt 5.1 :-\  Worse, you can't
even get from Qt something to say which zone or is used.  If you're
after the system time zone you'll need to query the host system
yourself or use another library like kdelibs and boost which both have
proper support.


More information about the Interest mailing list