Fixed wrong Python object name for UTC

This commit is contained in:
Jaroslav Semančík 2014-04-29 23:20:49 +02:00 committed by Bernie Hackett
parent e6147ab72b
commit b362cc3454

View File

@ -1761,7 +1761,7 @@ static PyObject* get_value(PyObject* self, const char* buffer, unsigned* positio
Py_DECREF(args);
goto invalid;
}
utc_type = _get_object(state->UTC, "bson.tz_util", "UTC");
utc_type = _get_object(state->UTC, "bson.tz_util", "utc");
if (!utc_type || PyDict_SetItemString(kwargs, "tzinfo", utc_type) == -1) {
Py_DECREF(replace);
Py_DECREF(args);