def METHOD_NAME(self, dt, instance):
    """Returns the dt to localized time
    """
    request = api.get_request()
    return dtime.to_localized_time(dt, long_format=self.show_time,
                                   context=instance, request=request)