fix error in event when comparing dates when USE_TZ=False