[Development] QTBUG-36811. Qml date behaves unexpectedly for negative years.

Valery Kotov kotov.valery at gmail.com
Wed Dec 10 20:28:10 CET 2014


Dear Thiago and Ulf,

Thank you for your responses.

@Ulf
Ulf, thank you for pointing at related bug. It seems to me that you've
already fix the issue, haven't you? Is it correct that the solution is to
add 1 year to qml date object when the year is less than 0?


On Tue, Dec 9, 2014 at 11:25 AM, Ulf Hermann <ulf.hermann at theqtcompany.com>
wrote:

> > Just do the check I did above: What is the day before 0001-01-01?
>
> It's more complicated than that. Apparently certain date formats represent
> something called "333 BC" in human language as "-332". See QTBUG-29491 for
> some discussion.
>
> --
> Ulf Hermann, Software Engineer | The Qt Company
>
> Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
> Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der
> Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB
> 144331 B
>
> Email: ulf.hermann at theqtcompany.com | Mobile: + 49 151 68964561 | Phone: +49
> 30 63 92 3255 www.qt.io |Qt Blog: http://blog.qt.digia.com/ | Twitter:
> @QtbyDigia, @Qtproject | Facebook: www.facebook.com/qt
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>



-- 
Sincerely yours,
Valery Kotov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20141210/c9c9ab70/attachment.html>


More information about the Development mailing list