[Qt-interest] QDateTime daylight saving parsing time offset
Thiago Macieira
thiago at kde.org
Wed Mar 30 16:49:24 CEST 2011
On Wednesday, 30 de March de 2011 13:52:14 Paul Drummond wrote:
> Hi,
>
> For a project I am working on I get a date time string in the following
> format:
>
> Tue, 29 Mar 2011 09:00:00 +0100
>
> Unless I'm mistaken (which happens a lot with me when working with
> date/time conversions!) the above string is in UTC format. When
> converted to a QDateTime the time should be 10:00:00, right? Or have
> I got that completely wrong? I hate date/time hacking :-(
No, it would be 08:00.
Also note that QDateTime does not parse timezones. You must give it the UTC
time or the local time.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110330/227e8154/attachment.bin
More information about the Qt-interest-old
mailing list