Fix minor bug in partitions made out of only date (no time)