QDateTime::fromString() calculates wrong day when the day is more than 1 digit.
Can be reproduced with the following:
int main(int argc, char *argv)
QApplication app(argc, argv);
time = time.fromString("Sat Mar 12 2007");
qDebug("%d day", time.date().day());
qDebug("%d month", time.date().month());
qDebug("%d year", time.date().year());
This issue caused bug #24604 and is register in TrollTechs
Task Trackage datebase as ID #154433
The issue this causes in CrossVC is actually bug #246024 (without the typo).
Cervisia has the same bug, probably for the same reason.
CrossVC is getting a workaround, but I think this should really be patched in
the Qt package.
The upstream of CrossVC has create a workaround patch. A prerelease version of
CrossVC-1.5-2 which contains this patch can be find on rawhide.
I know, but this is a Qt bug and should really be fixed in Qt. And
unfortunately we can't count on Trolltech to fix this because Qt 3 has been
discontinued on July 1st.
CrossVC is also most likely not the only application affected, Cervisia appears
to be hit by this too, at least judging from the symptoms, and there may be
Your right, I have reference to the Prerelease of CrossVC-1.5.2, because it may
be helpful to create a patch to solve the issue on Qt.
Created attachment 159741 [details]
This patch fixes the bug by calculating the correct offset in the date string
where the day is located.
I have tested the suggested bug fix.
It seems to works fine together with crossvc.
Question: When we can expect the updated package?
Ping? Can we please get this fixed? While current CrossVC has a workaround, I
believe this exact same Qt regression to also plague Cervisia (I see the same
annoying symptoms as bug #246024 in Cervisia, and I haven't seen this with
older Qt versions) and who knows what other programs are affected by this bug.
A patch was provided 2.5 months ago. Than, can you please apply the patch?
Anybody contact Trolltech about this (yet)? If not, would be a good idea:
They have, as the bug report says: "is register in TrollTechs Task Trackage
datebase as ID #154433". But this is Qt 3 and TrollTech isn't updating that
anymore. I believe this bug is only in 3.3.8, older 3.3.x releases didn't have
it, and Qt 4 probably doesn't either.
Upstream link (marked "won't fix"):
Fair 'nuf, maybe we can get into qt-copy then.
This message is a reminder that Fedora 7 is nearing the end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 7. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '7'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 7's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 7 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug. If you are unable to change the version, please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. If possible, it is recommended that you try the newest available Fedora distribution to see if your bug still exists.
Please read the Release Notes for the newest Fedora distribution to make sure it will meet your needs:
The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Fixed months ago actually, in 3.3.8b.