[PATCH] Re: Time zones (again)
Robert C. Helling
robert at euve10195.vserver.de
Wed Jun 22 21:21:35 PDT 2016
Hi,
> Am 23.06.2016 um 04:17 schrieb Thiago Macieira <thiago at macieira.org>:
>
> The assignment on that second line erases any settings from the previous line.
>
> If you want to parse *as* GMT, the only way to do it is using ISO format and
> appending a "Z" to the target date. Something like
>
> timestamp = QDateTime::fromString(date + ' ' + time + 'Z', Qt::ISODate);
>
> Note: you need to ensure that the month, day and hour have leading zeroes.
>
> Alternatively, parse date and time separately, then create the QDateTime from
> the QDate and QTime objects.
Thanks for those comments. Will send an updated patch.
Robert
More information about the subsurface
mailing list