[Qt-interest] QDateTime daylight saving parsing time offset

Paul Drummond paul.drummond at iode.co.uk
Wed Mar 30 18:04:10 CEST 2011


Hi Thiago,

On 30 March 2011 16:33, Thiago Macieira <thiago at kde.org> wrote:
> I don't see why you'd spend the entire day to figure out what that +0100 means

I didn't mean I would need the whole day just for figuring out what
+0100 means.  I was in a rush this morning and got very confused about
the +0100 but that wasn't my question - I was really puzzled about why
QDateTime doesn't have the same "z" format specifier as Java
SimpleDateFormat (which I've used a lot).  Without the "z" specifier I
was unsure how to correctly convert the date string.

Maybe it's just me but I've encountered so many bugs and issues with
date/time code, I always tend to tread carefully these days. I'd
rather ask stupid questions than wait for my app to break when the
clocks go back :-)

Thanks for the responses - all helpful.

Paul Drummond.



More information about the Qt-interest-old mailing list