[Development] Status of QTimeZone

Thiago Macieira thiago.macieira at intel.com
Mon Apr 15 15:59:44 CEST 2013


On segunda-feira, 15 de abril de 2013 13.11.25, Mitch Curtis wrote:
> On 03/25/2013 10:43 PM, John Layt wrote:
> > 4) The QDateTime QDataStream was changed in 5.0 to write all times as UTC,
> > but I think this is wrong.  Qt::LocalTime is clearly documented as being
> > the same local time (i.e. ymd hms) regardless of the underlying system
> > time or time zone or any changes in the system zone.  The consistent
> > behaviour when serialising would then be to save and restore as the local
> > time and not its UTC equivalent.  For example if I serialise an alarm
> > time of 7am local time, I don't expect that to unserialise as 9am because
> > I changed the system time zone.  If I want a time relative to UTC then I
> > would use UTC, Offset or Time Zone.
> 
> Thiago, do you agree with John here?

Yes, I do.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130415/e1406a7a/attachment.sig>


More information about the Development mailing list