From b362cc345461b254609310188da8dd0d9d9546bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Seman=C4=8D=C3=ADk?= Date: Tue, 29 Apr 2014 23:20:49 +0200 Subject: [PATCH] Fixed wrong Python object name for UTC --- bson/_cbsonmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bson/_cbsonmodule.c b/bson/_cbsonmodule.c index 4dc4bebf4..0414b1107 100644 --- a/bson/_cbsonmodule.c +++ b/bson/_cbsonmodule.c @@ -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);