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))
Given a datetime object as value convert it to the timezone of
dataset/ETHPy150Open pinax/django-user-accounts/account/models.py/Account.localtime