[issue8304] time.strftime() and Unicode characters on Windows

STINNER Victor report at bugs.python.org
Mon Mar 8 13:17:58 EST 2021


STINNER Victor <vstinner at python.org> added the comment:

>  time.tzset() should be implemented

I'm not sure of what you mean. The function is implemented:

static PyObject *
time_tzset(PyObject *self, PyObject *unused)
{
    PyObject* m;

    m = PyImport_ImportModuleNoBlock("time");
    if (m == NULL) {
        return NULL;
    }

    tzset();

    /* Reset timezone, altzone, daylight and tzname */
    if (init_timezone(m) < 0) {
         return NULL;
    }
    Py_DECREF(m);
    if (PyErr_Occurred())
        return NULL;

    Py_RETURN_NONE;
}

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue8304>
_______________________________________


More information about the Python-bugs-list mailing list