Bug fix: #35 Wrong merging for multiple entries in a day.

Thanks @cdeleuze!