Depends when you last backed up your iPhone 3GS. When you got your iPhone 4, you applied your 3GS' backup to your new iPhone. Sounds like you applied a backup from around June 6. Otherwise, it's a glitch. I received a replacement iPhone from Apple before and that's how it works.