Share

Qtstalker

Tracker: Patches

5 Patch for changed date format - ID: 1680923
Last Update: Settings changed ( xley )

I think, the yahoo has changed date format to yyyy-mm-dd since February,
2007 that's why LibYahoo.0.33.so for Qtstalker was emitting 'Bad date'
messages in both the 'Auto History' and 'History' methods.

I after tweaking around a bit, have solved this problem; though I'm not
sure how good it is, but is working fine for me.

--- Yahoo.cpp.orig 2006-11-18 03:15:00.000000000 +0000
+++ Yahoo.cpp 2007-03-14 18:31:00.000000000 +0000
@@ -494,6 +494,15 @@
if (l.count() != 3)
return s;

+ if (l[0].toInt() > 1900) {
+ s = l[0];
+ s.append(l[1]);
+ s.append(l[2]);
+ s.append("000000");
+
+ return s;
+ }
+
s = l[2];
if (s.toInt() > 29)
s.prepend("19");


I'm submitting a patch in a hope that this would be useful for other users
of Qtstalker :)


Thank you, and yes, a big thanks for the Qtstalker too.
Regards,


Balwinder S Dheeman ( bsd3 ) - 2007-03-14 18:55

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 3 )




Date: 2007-05-22 01:45
Sender: xleySourceForge.net Subscriber


Thanks. I gather that Steve has already deal with this date change problem
in the trunk CVS - it has been working fine for me.

I added the error reporting changes that you contributed. Thanks.


Date: 2007-03-15 17:26
Sender: bsd3Accepting Donations


The ideas of using scripts is not bad, but I differ somewhat 'cause of my
vision and, or way of meeting such challenges. Plz read
http://sourceforge.net/forum/message.php?msg_id=4209628

On looking around the code in this plugin I found a few more weakness, so
I'm also submitting a new patch, also which obsoletes the one I posted
earlier.

File Added: Yahoo.cpp.2.patch


Date: 2007-03-15 09:51
Sender: loh_tar


please look there for my comment
http://sourceforge.net/forum/forum.php?thread_id=1694067&forum_id=80700


Log in to comment.

Attached Files ( 2 )

Filename Description Download
Yahoo.cpp.patch Unified diff Download
Yahoo.cpp.2.patch Unified diff Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2007-05-22 01:46 xley
resolution_id None 2007-05-22 01:46 xley
close_date - 2007-05-22 01:46 xley
File Added 220712: Yahoo.cpp.2.patch 2007-03-15 17:26 bsd3
File Added 220546: Yahoo.cpp.patch 2007-03-14 18:55 bsd3