﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28245	timezone.UTC() is not exported, but is attempted to be accessed	Christopher Dieringer	nobody	"== problem statement

`timezone.UTC()` is called, but no such function is exported.

== solution

it seems that mapping timezone.UTC() ==> timezone.utc may be what is desired

== how to reproduce

- send an ISO compliant datetime w/ UTC offset to a DateTimeField(), e.g. `2017-05-30T17:17:21-07:00`

== stack

the pertinent part of the stack here reveals all:


File ""/path/to/rest_framework/fields.py"" in to_internal_value
  1130.                         return self.enforce_timezone(parsed)

File ""/path/to/rest_framework/fields.py"" in enforce_timezone
  1107.             return timezone.make_naive(value, timezone.UTC())

Exception Type: AttributeError at /rest/v1/api/schedules
Exception Value: module 'django.utils.timezone' has no attribute 'UTC'
"	Bug	closed	Uncategorized	1.11	Normal	invalid	utc,fields,timezone		Unreviewed	0	0	0	0	0	0
