[Interest] QDateTime Issue in Qt5.8.0 msvc2013,msvc2015

Günter Michel gm at mes-ia.de
Wed Feb 1 16:33:33 CET 2017


OK my fault, qDebug() results are also ok here, seems debug view related.
I have looked at debugger Output in Qt Creator 4.2.0 ( dt (invalid) )

Am 01.02.2017 um 16:02 schrieb Mike Chinander:
>
>
> On Wed, Feb 1, 2017 at 8:44 AM, Günter Michel <gm at mes-ia.de 
> <mailto:gm at mes-ia.de>> wrote:
>
>     This simple code returns an invalid date compiled with Qt5.8.0
>     msvc2013:
>
>     QDateTimedt=QDateTime::currentDateTime();
>
>     Compiling with mingw results in correct date but wrong time. Code
>     works in Qt5.7.1
>     What's going on here?
>
>
>
> This is what I get with 5.8.0RC and msvc2013 on Windows 7 (it's correct):
>
>     QDateTime dt = QDateTime::currentDateTime();
>     qDebug() << "Current Date: " << dt;
>     qDebug() << "Current Date: " << dt.toString(Qt::ISODateWithMs);
>
> Output:
>
> Current Date:  QDateTime(2017-02-01 08:52:22.838 Central Standard Time 
> Qt::TimeSpec(LocalTime))
> Current Date:  "2017-02-01T08:52:22.838"
>
> What exactly do you mean by "invalid date"?
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


-- 
MES Industrieautomation GmbH
Simmershäuser Straße 102D
D-34125 Kassel

Tel.  0049(0561) 813004
Fax   0049(0561) 813005
Mobil +49 172 9822485
E-mail: gm at mes-ia.de
http:// www.mes at mes-ia.de

Registergericht: Amtsgericht Kassel HRB5618

Geschäftsführer: Ralf Brüne
                  Günter Michel
                  Axel Rosenthal
                  Manfred Stangl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170201/c4422d3c/attachment.html>


More information about the Interest mailing list