def localtime(self, value):
        timezone = settings.TIME_ZONE if not self.timezone else self.timezone
        if value.tzinfo is None:
            value = pytz.timezone(settings.TIME_ZONE).localize(value)
        return value.astimezone(pytz.timezone(timezone))
Test to stop bluetooth service
dataset/ETHPy150Open pinax/django-user-accounts/account/models.py/Account.localtime--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/bluez_test.py/BluezTestCase.test_stop