Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get_timezone call on exports download page #34759

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions corehq/apps/export/views/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
from corehq.apps.export.utils import get_export
from corehq.apps.export.views.utils import (
ExportsPermissionsManager,
get_timezone,
case_type_or_app_limit_exceeded
)
from corehq.apps.hqwebapp.decorators import use_daterangepicker
Expand All @@ -74,6 +73,7 @@
from corehq.apps.settings.views import BaseProjectDataView
from corehq.apps.users.models import CouchUser
from corehq.toggles import PAGINATED_EXPORTS
from corehq.util.timezones.utils import get_timezone
from corehq.util.view_utils import is_ajax
from corehq.toggles import EXPORT_DATA_SOURCE_DATA
from corehq.apps.userreports.models import DataSourceConfiguration
Expand Down Expand Up @@ -115,7 +115,7 @@ def send_preparation_analytics(self, export_instances, export_filters):

def get_filter_form(self, filter_form_data):
domain_object = Domain.get_by_name(self.domain)
timezone = get_timezone(self.domain, self.request.couch_user)
timezone = get_timezone(self.request, self.domain)
filter_form = self.filter_form_class(domain_object, timezone, filter_form_data)

if not filter_form.is_valid():
Expand Down Expand Up @@ -179,7 +179,7 @@ def view_helper(self):
@property
@memoized
def timezone(self):
return get_timezone(self.domain, self.request.couch_user)
return get_timezone(self.request, self.domain)

@property
@memoized
Expand Down
Loading