Skip to content

Commit

Permalink
Merge pull request #34759 from dimagi/es/fix-timezone
Browse files Browse the repository at this point in the history
Fix get_timezone call on exports download page
  • Loading branch information
esoergel authored Jun 12, 2024
2 parents 1941d57 + 5c7d65c commit 27a8276
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 27a8276

Please sign in to comment.