[Development] Status of QTimeZone

Mitch Curtis mitch.curtis at digia.com
Mon Apr 15 13:11:25 CEST 2013


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?

I think it makes sense, and the blame lies on me if so, but I did add 
you (John) as a reviewer: https://codereview.qt-project.org/#change,32966



More information about the Development mailing list