opened
dannyroberts
username_0
make sure date passed to date_to_json is tz-less
issue
created
dannyroberts
username_0
Fixes:

```python
Traceback (most recent call last):

  File "/home/cchq/www/production/python_env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/home/cchq/www/production/python_env/local/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)

  File "/home/cchq/www/production/code_root/corehq/apps/domain/decorators.py", line 188, in __outer__
    return additional_decorator(__inner__)(request, domain, *args, **new_kwargs)

  File "/home/cchq/www/production/code_root/corehq/apps/domain/decorators.py", line 77, in _inner
    return view_func(req, domain_name, *args, **kwargs)

  File "/home/cchq/www/production/code_root/corehq/apps/domain/decorators.py", line 185, in __inner__
    return func(cls, request, *args, **kwargs)

  File "/home/cchq/www/production/code_root/corehq/apps/reports/dispatcher.py", line 223, in dispatch
    return super(ProjectReportDispatcher, self).dispatch(request, *args, **kwargs)

  File "submodules/dimagi-utils-src/dimagi/utils/decorators/datespan.py", line 45, in wrapped_func
    return f(*args, **kwargs)

  File "/home/cchq/www/production/code_root/corehq/apps/reports/dispatcher.py", line 137, in dispatch
    return getattr(report, '%s_response' % render_as)

  File "/home/cchq/www/production/code_root/corehq/util/quickcache.py", line 189, in inner
    return helper(*args, **kwargs)

  File "/home/cchq/www/production/code_root/corehq/apps/reports/cache.py", line 18, in __call__
    return self.fn(*args, **kwargs)

  File "/home/cchq/www/production/code_root/corehq/apps/reports/generic.py", line 605, in json_response
    return json_response(self.json_dict)

  File "/home/cchq/www/production/code_root/corehq/apps/reports/generic.py", line 811, in json_dict
    rows = list(self.rows)

  File "/home/cchq/www/production/code_root/corehq/apps/reports/standard/cases/basic.py", line 310, in rows
    for data in self.get_data():

  File "/home/cchq/www/production/code_root/corehq/apps/reports/standard/cases/basic.py", line 277, in get_data
    'is_closed', 'opened_on', 'modified_on', 'closed_on',

  File "/home/cchq/www/production/code_root/corehq/apps/reports/standard/cases/basic.py", line 275, in <genexpr>
    data.update((prop, getattr(ci, prop)) for prop in (

  File "/home/cchq/www/production/code_root/corehq/apps/reports/standard/cases/data_sources.py", line 64, in opened_on
    return self._dateprop('opened_on')

  File "/home/cchq/www/production/code_root/corehq/apps/reports/standard/cases/data_sources.py", line 57, in _dateprop
    val = self.report.date_to_json(self.parse_date(self.case[prop]))

  File "/home/cchq/www/production/code_root/corehq/apps/reports/standard/cases/basic.py", line 325, in date_to_json
    return (PhoneTime(date, self.timezone).user_time(self.timezone)

  File "/home/cchq/www/production/code_root/corehq/util/timezones/conversions.py", line 30, in __init__
    assert tzinfo is None

AssertionError
```
comment
created
dannyroberts
username_0
@nickpell
comment