There's still a small bug I think. If a driver has an online PB which is equal to the WR, then the box which usually shows the difference to the WR is completely blank.
That's a good point and something which I hadn't thought of. Maybe you could just make that data available to a few trusted sites, such as icespy, and then insist that those sites checked regularly whether the data had recently become hidden, and if so their site should also hide it.
Anyway, it would be nice if we could get nationalities at least, since those can't be hidden .
Third place in the Formula Renault Northern Euro Cup, best rookie. Five wins from his last six Formula Renault races, including 3 wins and a second from four Formula Renault UK Winter Cup 2007 races. He also tested a Formula Renault World Series car and was fastest by 0.6 seconds at Paul Ricard. He'll probably be racing in Formula Renault UK next year, if he does well there, Formula 1 is a likely destination within the next few years! He was also recently named Finnish Young Driver of the Year, with Raikkonen winning the main award.
I'd like to be able to get personal data (real name, DoB, nationality etc.) too, though I can understand if you are bothered about possible privacy issues. The data is already publically available to anyone on LFS World though, so maybe there's some other reason you wouldn't want to do it?
When someone is under the WR the comparison is bugged.
FO8 @ SO2 (Sprint 1) - WR 43.21
Hawku has done 42.22 online and LFS World says "WR-diff -0:00.". Evans has done 42.36 online and LFS World says "WR-diff -0:00.150".
FBM @ AS3 (National) - WR 1:55.55
MarcG has done 1:55.44 online and LFS World says "WR-diff -0:00.890".
If you add 1 second to the comparison times they are almost correct, although Hawku's time with FO8 @ SO2 is totally bugged. I don't know what happens when someone is 1 second or more below the WR time.
Edit: Hawku just did 42.06 which is 1.15 seconds below the WR time, LFS World now says "WR-diff -0:99.850".
All you should be doing to compare the times is:
1) Convert both times to milliseconds
2) Subtract the WR time from the PB time
3) Convert the new number to mm:ss.th format
It seems that your function is over-complicating things.