d6ddc4 Fix retrieving user activity when there was only 1 commit that day

Authored and Committed by Pierre-Yves Chibon 7 years ago
    Fix retrieving user activity when there was only 1 commit that day
    
    We had a bug where retrieving the user's activity when there was only
    one commit on that day would crash.
    This commit fixes it and add unit-tests confirming the fix.
    
        
file modified
+5 -1