refactored date comparisons to not care about timezone