HTC One Battery Problem

This worked for me. This is from HTC Customer support. Let's do a Wipe Cache Partition, Sometimes this kind of issues come up after an update it's most commonly caused by files being left behind from the update process, Don't you worry This process won't erase the information you have on your device. To fix this, First, please go to Settings >"Power" or "Battery", > "Fast Boot" turn it off or uncheck it. Once that's done, go ahead and fully shut down the phone to start the process. Thank you, once the device is off, please go ahead and hold in the Volume Down key and the power key at the same time for a few seconds. Continue holding the Volume Down until you get to an "HBOOT" screen with 3 android guys at the bottom. Once in there, use the volume keys to go down to "Recovery" option, then press the power button once to select it. Finally, You'll be taken to a screen with a picture of a Battery with a "!" icon in it. Once there please hold the Volume Up key and press the Power key once for just a second, then let go, you will see another menu, go down (using the Volume Keys again) to "Wipe Cache Partition" option and press once the power key to select it. Once it's complete, choose the option to "Reboot System Now" and the phone will start back up. The Cache Wipe is complete.
 
It seems like there is a lot of problem with HTC's batteries.

I got my brand new m7 about a week ago. It was shutting down on about 30%, weird.
Then I noticed that when i charged my phone fully and then rebooted the phone, it showed 70%. So before reboot 100%, after reboot 70%.
Anybody who is facing with this issue do this:
1. reboot in safe mode --> recovery --> clear cache --> reboot the phone (it should still show ~70%)
2. turn off the phone
3. put it on the charger
Now you should charge the phone to 100% while it's turned off. Then remove the cable and turn on. If it shows 100% you are good to go.
I also did a factory reset, but i'm not sure if it is required step in the process. I don't want to test it out because of obvious reasons :D