We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2a141 commit e04061eCopy full SHA for e04061e
src/glue.c
@@ -284,6 +284,10 @@ PyObject *mg_local_time_to_py_time(const mg_local_time *lt) {
284
SCOPED_CLEANUP PyObject *seconds =
285
PyLong_FromLongLong(nanos / one_sec_to_nanos);
286
const int64_t leftover_nanos = nanos % one_sec_to_nanos;
287
+ // The reason for different implementation of getting utc time from timestamp
288
+ // is because we need to explicitly define utc timezone on Windows unlike on
289
+ // linux, but that API is only allowed in py3.7, therefore the support for
290
+ // Windows is only for python version >= 3.7.
291
#ifdef _WIN32
292
SCOPED_CLEANUP PyObject *method_name = PyUnicode_FromString("fromtimestamp");
293
IF_PTR_IS_NULL_RETURN(method_name, NULL);
0 commit comments