[Interest] Relashionship between time_t and QDateTime

Thiago Macieira thiago.macieira at intel.com
Wed Aug 28 00:53:23 CEST 2013

On quarta-feira, 28 de agosto de 2013 01:01:55, Constantin Makshin wrote:
> The original Calogero's message mentioned a file from December 2007, a
> date outside of DST (unless there's a country that uses DST during
> winter). Now it's August, so the DST is active and during "UTC -> local
> time" conversion Windows adds that 1 hour Calogero is seeing. DST gets
> incorrectly applied because it's active at the moment of conversion,
> although it wasn't used at the moment the original timestamp represents.

That would support the theory that gmtime is broken on Windows, that it 
doesn't apply the DST rules at all.

I don't have time to do further testing on this, so if someone can, it would 
be appreciated. Also, please report the issue in the Qt issue tracker 
(http://bugreports.qt-project.org) so it doesn't get forgotten.

PS: I don't know of any country that does DST in Winter. I do know of 
countries that have Summer in December, though, and I know of regions that do 
reverse DST during Winter.

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/interest/attachments/20130827/534f50b2/attachment.sig>

More information about the Interest mailing list