From 88bdce2180666541c0ce6d01cbab8c32fb1aa4ab Mon Sep 17 00:00:00 2001 From: Cory Zue Date: Tue, 15 Apr 2014 10:40:52 +0000 Subject: [PATCH] don't double convert times on form rendering views http://manage.dimagi.com/default.asp?108067 --- couchforms/templatetags/xform_tags.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/couchforms/templatetags/xform_tags.py b/couchforms/templatetags/xform_tags.py index a34d4c7..cbb1b43 100644 --- a/couchforms/templatetags/xform_tags.py +++ b/couchforms/templatetags/xform_tags.py @@ -90,8 +90,10 @@ def render_form(form, domain, options): Change to kwargs when we're on a version of Django that does. """ - timezone = options.get('timezone', pytz.utc) - #display = options.get('display') + # don't actually use the passed in timezone since we assume form submissions already come + # in in local time. + # todo: we should revisit this when we properly handle timezones in form processing. + timezone = pytz.utc case_id = options.get('case_id') case_id_attr = "@%s" % const.CASE_TAG_ID