History Date Error on the current day

Home Assistant release (hass --version):
0.43.2
also had it in 0.43.1

Python release (python3 --version):
Python 3

Component/platform:
History

Description of problem:
Invalid data at row #4: start(Fri May 05 2017 16:10:08 GMT+0500 (Pakistan Standard Time)) > end(Fri May 05 2017 15:19:39 GMT+0500 (Pakistan Standard Time))

History is perfect a day behind. But shows error in the current day. If I click on a individual entity it shows correct history of the current day. I have tried to delete the db multiple times but no success.

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:

Enables support for tracking state changes over time.

history:

View all events in a logbook

logbook:

This should really be posted in the github issue section so it gets looked at: