[Interest] Setting timezone for QDateTime::currentDateTime()
Thiago Macieira
thiago.macieira at intel.com
Sat Aug 8 23:19:16 CEST 2015
On Saturday 08 August 2015 19:59:43 Tom Isaacson wrote:
> I'm running Qt 4.8.2 on a Freescale BSP using Linux 3.0.17. The
> documentation for QDateTime::currentDateTime() says "Returns the current
> datetime, as reported by the system clock, in the local time zone." We use
> settimeofday() [http://linux.die.net/man/2/settimeofday] to set the system
> clock but the documentation says the timezone struct is obsolete and should
> not be used. So how can we programatically set the timezone in a way that
> Qt will recognise?
Make /etc/localtime be a symlink to the correct zoneinfo file.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list