Why does my iPhone 4 keep turning off and on by itself when its plugged in?

I have an iPhone 4 and whenever I unplug it, it turns off. I can't get any source of signal, the Wi-Fi switch is greyed out, the date changed to December 31 and the time is an hour behind. The battery before I plugged it in was 20% its been 5 minutes and its up to 100%. Pretty weird.

The power strip is burning it out you need a new charger