'Test date sensor behavior in a timezone besides UTC.'

def test_timezone_intervals(self):

    new_tz = dt_util.get_time_zone('America/New_York')
    assert (new_tz is not None)
    dt_util.set_default_time_zone(new_tz)
    device = time_date.TimeDateSensor(self.hass, 'date')
    now = dt_util.utc_from_timestamp(50000)
    next_time = device.get_next_interval(now)
    assert (next_time.timestamp() == 104400)
