PDA

View Full Version : OT: Flight Tracker Widget fix



jeremyhardin
10-26-2006, 05:13 AM
For any of you that have had times be wrong on the Flight Tracker widget (as I did), here's how I fixed it. For me, it was consistently wrong. I.e. it was always 3 hours off. If it's not consistently wrong for you...DON'T DO THIS.

1. find Flight Tracker.wdgt on your hard drive.
2. right click and choose "Show Package contents".
3. open FlightTracker.js in a text editor.
4. go to line 1628. it should read:
date.setUTCHours(hour);
5. do the math so that it accounts for the wrong time. mine was 3 hours off, so I changed it to:
date.setUTCHours(hour-3);.
6. just so I could find the line again, I also ammended a comment to the end of the line, so my altered line reads:
date.setUTCHours(hour-3); //this is where I, Jeremy Hardin, changed stuff.
7. save the file, and you should be good to go. you'll probably have to refresh the widget to see the change.

Granted, I just did this, but it's working for me so far. Hope my system doesn't DIE as a result, but I doubt a widget would do that. :D