fix date comparisons for travis