Last night it couldn't load cydia. I set the alarm and went to bed, somehow in the middle of the night the time got changed and I ended up getting ready for school two hours early, I knew it looked too dark when I went outside. I came back in the phone still has the wrong time so I rebooted to get the sad iphone in safe mode. I rebooted again and it seems to be working fine now. All of this happened after a cydia update yesterday. I was thinking about restoring and rejailbreaking because my phone has done some weird things in the past 24 hrs. Any input?

My question is this, since ios 4.0.2 is out will it automatically upgrade to that with an itunes restore? If so can I stop it and how?