Fix time filter in ranking