]> git.saurik.com Git - wxWidgets.git/commit - tests/datetime/datetimetest.cpp
Fix bugs in the recently added wxDateTime::DiffAsDateSpan().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Oct 2012 22:48:30 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 4 Oct 2012 22:48:30 +0000 (22:48 +0000)
commitf4370376b6e5a3df8b3f2cd1637483554af2fa4a
tree55e3d05125c0277ce9da0369896aad1640a3bc29
parent16630eb7e3ef05fa487b67188df12d10e66a5beb
Fix bugs in the recently added wxDateTime::DiffAsDateSpan().

Correct the test for negative spans less than a month and use the correct
month for computing the number of days in it.

Also add unit tests for problematic cases.

Closes #14704.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datetime.cpp
tests/datetime/datetimetest.cpp