Fixed TypeError: can't compare offset-naive and offset-aware datetimes