Fixed date rolling back when equal times

Closes #27
Introduced in #24