Fixes repeated dates - issue #1098